|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.sgs.app.AppContext
public final class AppContext
Provides access to facilities available in the current application context.
The AppContext
uses the InternalContext
to retrieve
managers via its ManagerLocator
.
This class should not be instantiated.
Method Summary | ||
---|---|---|
static ChannelManager |
getChannelManager()
Returns the ChannelManager for use by the current
application. |
|
static DataManager |
getDataManager()
Returns the DataManager for use by the current application. |
|
static
|
getManager(Class<T> type)
Returns a manager of the specified type for use by the current application. |
|
static TaskManager |
getTaskManager()
Returns the TaskManager for use by the current application. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ChannelManager getChannelManager()
ChannelManager
for use by the current
application. The object returned is not serializable, and should not be
stored as part of a managed object.
ChannelManager
for the current application
ManagerNotFoundException
- if the ChannelManager
cannot
be locatedpublic static DataManager getDataManager()
DataManager
for use by the current application.
The object returned is not serializable, and should not be stored as
part of a managed object.
DataManager
for the current application
ManagerNotFoundException
- if the DataManager
cannot
be locatedpublic static TaskManager getTaskManager()
TaskManager
for use by the current application.
The object returned is not serializable, and should not be stored as
part of a managed object.
TaskManager
for the current application
ManagerNotFoundException
- if the TaskManager
cannot
be locatedpublic static <T> T getManager(Class<T> type)
T
- the type of the managertype
- a class representing the type of the manager
ManagerNotFoundException
- if no manager is found for the
specified type
|
Project Darkstar, Version 0.9.9.6 2009-05-08 15:39:40 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |