|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gxos.ContextManager
Provides all the functionality needed for context management for GXOS such as initialization, root context creation, etc.
$Id: ContextManager.java,v 1.3 2001/05/01 14:34:13 balsoy Exp $
Constructor Summary | |
ContextManager()
|
Method Summary | |
static RootContext |
createRootContext(java.lang.String rootName)
This function returns the root context, i.e. |
static GxContext |
getContext()
Returns the initial context for the context manager. |
static RootContext |
getRootContext(java.lang.String rootName)
This function returns the root context, i.e. |
static GxContext |
initialize(java.util.Hashtable env)
Initializes the context manages with the given environment settings. |
static void |
setContext(GxContext ctx)
Sets initial context for the context manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextManager()
Method Detail |
public static GxContext getContext()
Returns the initial context for the context manager.
public static void setContext(GxContext ctx)
Sets initial context for the context manager. This holds "//" context.
ctx
- Initial GXOS context.public static GxContext initialize(java.util.Hashtable env) throws javax.naming.NamingException
Initializes the context manages with the given environment settings.
javax.naming.NamingException
- if a naming error is encountered.public static RootContext createRootContext(java.lang.String rootName) throws javax.naming.NamingException
This function returns the root context, i.e. //GlobalRoot, //Education.
If it does not exist, it creates a new one as well as other predefined
subcontexts such as Admin, Documents, Events
, etc.
rootName
- Name for the root, i.e. Education, //University,
//Education/University/CSDepartmentjavax.naming.NamingException
- if a root context cannot be created or
any other naming error is encountered.public static RootContext getRootContext(java.lang.String rootName) throws javax.naming.NamingException
This function returns the root context, i.e. //GlobalRoot, //Education.
rootName
- Name for the root, i.e. Education, //University,
//Education/University/CSDepartmentNameNotFoundException
- if the root context does not existjavax.naming.NamingException
- if any other naming error is encountered.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |