public class GlobalContextManager extends Object implements ObjectFactory, InitialContextFactory
Constructor and Description |
---|
GlobalContextManager() |
Modifier and Type | Method and Description |
---|---|
static Context |
getGlobalContext()
Gets the global context.
|
Context |
getInitialContext(Hashtable environment)
Returns the Context registered with the GlobalManager.
|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable environment)
Returns the Context registered with the GlobalManager.
|
static void |
setGlobalContext(Context globalContext)
Sets the global context.
|
public static Context getGlobalContext()
public static void setGlobalContext(Context globalContext)
globalContext
- the new global contextpublic Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception
getObjectInstance
in interface ObjectFactory
obj
- must be nullname
- ignorednameCtx
- ignoredenvironment
- ignoredOperationNotSupportedException
- if obj is not nullException
public Context getInitialContext(Hashtable environment)
getInitialContext
in interface InitialContextFactory
environment
- ignoredCopyright © 2005-2021. All Rights Reserved.