InitialContextFactory
, ObjectFactory
javaURLContextFactory
public class GlobalContextManager extends Object implements ObjectFactory, InitialContextFactory
Constructor | Description |
---|---|
GlobalContextManager() |
Modifier and Type | Method | 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–2018. All rights reserved.