|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
javax.naming.Context |
getComponentContext()
Get the Context associated with the current thread or to a class loader. |
javax.naming.Context |
getComponentContext(java.lang.ClassLoader cl)
Return the ComponentContext associated with the given classloader. |
java.util.Hashtable<?,?> |
getEnv()
Return the environment for JNDI This is used only for handles today. |
javax.naming.InitialContext |
getInitialContext()
Get the initialContext used in this jonas server. |
static JNamingManager |
getInstance()
Return the unique instance of a NamingManager. |
javax.naming.Context |
getServerContext()
Get the server component context. |
void |
resetComponentContext(javax.naming.Context ctx)
Set back the context with the given value. |
void |
setClientContainerComponentContext(javax.naming.Context ctx)
Set the context used by client container (per JVM instead of per thread). |
javax.naming.Context |
setComponentContext(javax.naming.Context ctx)
Associate this ComponentContext with the current thread. |
void |
setComponentContext(javax.naming.Context ctx,
java.lang.ClassLoader cl)
Associate the specified ComponentContext with the given classloader. |
void |
setJComponentContextFactory(JComponentContextFactory factory)
Set the unique instance of the JComponentContextFactory. |
void |
unSetComponentContext(java.lang.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 javax.naming.NamingException
javax.naming.NamingException - if it failed.public void setJComponentContextFactory(JComponentContextFactory factory)
setJComponentContextFactory in interface JNamingManagerfactory - the component context factorypublic javax.naming.InitialContext getInitialContext()
getInitialContext in interface JNamingManager
public javax.naming.Context getComponentContext()
throws javax.naming.NamingException
getComponentContext in interface JNamingManagerjavax.naming.NamingException - When operation is not allowedpublic javax.naming.Context setComponentContext(javax.naming.Context ctx)
setComponentContext in interface JNamingManagerctx - the context to associate to the current thread.
public void resetComponentContext(javax.naming.Context ctx)
resetComponentContext in interface JNamingManagerctx - the context to associate to the current thread.
public void setComponentContext(javax.naming.Context ctx,
java.lang.ClassLoader cl)
setComponentContext in interface JNamingManagerctx - the context to associate to the classloader.cl - the classloader which is bind to the context.public void setClientContainerComponentContext(javax.naming.Context ctx)
setClientContainerComponentContext in interface JNamingManagerctx - the context to setpublic javax.naming.Context getComponentContext(java.lang.ClassLoader cl)
getComponentContext in interface JNamingManagercl - the classloader which is bind to the context.
public void unSetComponentContext(java.lang.ClassLoader cl)
unSetComponentContext in interface JNamingManagercl - the classloader which is bind to the context.public java.util.Hashtable<?,?> getEnv()
getEnv in interface JNamingManagerpublic javax.naming.Context getServerContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||