|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.naming.SingletonNamingManager
public class SingletonNamingManager
Naming Manager for an EJB Server. this singleton class must exist in each jonas server.
Method Summary | |
---|---|
Context |
getComponentContext()
Get the Context associated with the current thread or to a class loader. |
Context |
getComponentContext(ClassLoader cl)
Return the ComponentContext associated with the given classloader. |
Hashtable<?,?> |
getEnv()
Return the environment for JNDI This is used only for handles today. |
InitialContext |
getInitialContext()
Get the initialContext used in this jonas server. |
static JNamingManager |
getInstance()
Return the unique instance of a NamingManager. |
Context |
getServerContext()
Get the server component context. |
void |
resetComponentContext(Context ctx)
Set back the context with the given value. |
void |
setClientContainerComponentContext(Context ctx)
Set the context used by client container (per JVM instead of per thread). |
Context |
setComponentContext(Context ctx)
Associate this ComponentContext with the current thread. |
void |
setComponentContext(Context ctx,
ClassLoader cl)
Associate the specified ComponentContext with the given classloader. |
void |
setJComponentContextFactory(JComponentContextFactory factory)
Set the unique instance of the JComponentContextFactory. |
void |
unSetComponentContext(ClassLoader cl)
Remove the ComponentContext associated with the given classloader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JNamingManager getInstance() throws NamingException
NamingException
- if it failed.public void setJComponentContextFactory(JComponentContextFactory factory)
setJComponentContextFactory
in interface JNamingManager
factory
- the component context factorypublic InitialContext getInitialContext()
getInitialContext
in interface JNamingManager
public Context getComponentContext() throws NamingException
getComponentContext
in interface JNamingManager
NamingException
- When operation is not allowedpublic Context setComponentContext(Context ctx)
setComponentContext
in interface JNamingManager
ctx
- the context to associate to the current thread.
public void resetComponentContext(Context ctx)
resetComponentContext
in interface JNamingManager
ctx
- the context to associate to the current thread.public void setComponentContext(Context ctx, ClassLoader cl)
setComponentContext
in interface JNamingManager
ctx
- the context to associate to the classloader.cl
- the classloader which is bind to the context.public void setClientContainerComponentContext(Context ctx)
setClientContainerComponentContext
in interface JNamingManager
ctx
- the context to setpublic Context getComponentContext(ClassLoader cl)
getComponentContext
in interface JNamingManager
cl
- the classloader which is bind to the context.
public void unSetComponentContext(ClassLoader cl)
unSetComponentContext
in interface JNamingManager
cl
- the classloader which is bind to the context.public Hashtable<?,?> getEnv()
getEnv
in interface JNamingManager
public Context getServerContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |