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 ObjectFactoryobj - must be nullname - ignorednameCtx - ignoredenvironment - ignoredOperationNotSupportedException - if obj is not nullExceptionpublic Context getInitialContext(Hashtable environment)
getInitialContext in interface InitialContextFactoryenvironment - ignoredCopyright © 2005-2018 The Apache Software Foundation. All Rights Reserved.