|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPdsAppKernelAppContext
Interface for custom app kernel app context classes
| Method Summary | ||
|---|---|---|
Object |
getChannelManager()
Returns the ChannelManager used in this context. |
|
Object |
getDataManager()
Returns the DataManager used in this context. |
|
|
getManager(Class<T> type)
Returns a manager based on the given type. |
|
|
getService(Class<T> type)
Returns a Service based on the given type. |
|
Object |
getTaskManager()
Returns the TaskManager used in this context. |
|
void |
initialize(String applicationName,
Set<Object> services,
Set<Object> managers)
Initializes the app context. |
|
Iterable<Object> |
listManagers()
Lists all managers |
|
Iterable<Object> |
listServices()
Lists all services |
|
void |
shutdownServices()
Shut down all the service components in the reverse order that they were added. |
|
| Method Detail |
|---|
void initialize(String applicationName,
Set<Object> services,
Set<Object> managers)
applicationName - the application nameservices - the services listmanagers - the managers list
IllegalStateException - thrown if the app context was initialized before (duplicate method invocation).Object getChannelManager()
ChannelManager used in this context.
ChannelManagerObject getDataManager()
DataManager used in this context.
DataManagerObject getTaskManager()
TaskManager used in this context.
TaskManager<T> T getManager(Class<T> type)
ManagerNotFoundException is thrown. This may be used to find any available manager, including the three standard managers.
T - the Class of the requested Servicetype - the Class of the requested manager
ManagerNotFoundException - if there wasn't exactly one match to the requested type<T> T getService(Class<T> type)
Service based on the given type. If the type is unknown, or if there is more than one Service of the
given type, MissingResourceException is thrown. This is the only way to resolve service components directly, and should be used
with care, as Services should not be resolved and invoked directly outside of a transactional context.
T - the Class of the requested Servicetype - the Class of the requested Service
Service
MissingResourceException - if there wasn't exactly one match to the requested typevoid shutdownServices()
Iterable<Object> listServices()
Iterable<Object> listManagers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||