|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.naming.NamingManager
public class NamingManager
Naming Manager for an EJB Server. this singleton class must exist in each jonas server.
Method Summary | |
---|---|
javax.naming.Context |
createEnvironmentContext(java.lang.String namespace)
Create Context for application and component environments. |
javax.naming.Context |
createImmutableEnvironmentContext(java.lang.String namespace)
Create Immutable Context. |
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 CompNamingContext associated with the given classloader. |
java.util.Hashtable |
getEnv()
Return the environment for JNDI This is used only for handles today. |
javax.ejb.spi.HandleDelegate |
getHandleDelegate()
|
javax.naming.InitialContext |
getInitialContext()
Get the initialContext used in this jonas server. |
static NamingManager |
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 CompNamingContext with the current thread. |
void |
setComponentContext(javax.naming.Context ctx,
java.lang.ClassLoader cl)
Associate the specified CompNamingContext with the given classloader. |
void |
unSetComponentContext(java.lang.ClassLoader cl)
Remove the CompNamingContext 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 NamingManager getInstance() throws javax.naming.NamingException
javax.naming.NamingException
- if it failed.public javax.naming.InitialContext getInitialContext()
getInitialContext
in interface ContainerNaming
public javax.ejb.spi.HandleDelegate getHandleDelegate()
public javax.naming.Context createEnvironmentContext(java.lang.String namespace) throws javax.naming.NamingException
createEnvironmentContext
in interface ContainerNaming
namespace
- namespace to used for the Context
javax.naming.NamingException
- if the creation of the java: context failed.public javax.naming.Context getComponentContext() throws javax.naming.NamingException
getComponentContext
in interface ContainerNaming
javax.naming.NamingException
- When operation is not allowedpublic javax.naming.Context setComponentContext(javax.naming.Context ctx)
setComponentContext
in interface ContainerNaming
ctx
- the context to associate to the current thread.
public void resetComponentContext(javax.naming.Context ctx)
resetComponentContext
in interface ContainerNaming
ctx
- the context to associate to the current thread.public void setComponentContext(javax.naming.Context ctx, java.lang.ClassLoader cl)
setComponentContext
in interface ContainerNaming
ctx
- 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 ContainerNaming
ctx
- the context to setpublic javax.naming.Context getComponentContext(java.lang.ClassLoader cl)
getComponentContext
in interface ContainerNaming
cl
- the classloader which is bind to the context.
public void unSetComponentContext(java.lang.ClassLoader cl)
unSetComponentContext
in interface ContainerNaming
cl
- the classloader which is bind to the context.public java.util.Hashtable getEnv()
getEnv
in interface ContainerNaming
public javax.naming.Context createImmutableEnvironmentContext(java.lang.String namespace) throws javax.naming.NamingException
createImmutableEnvironmentContext
in interface ContainerNaming
namespace
- namespace to used for the Context
javax.naming.NamingException
- if the creation of the java: context failed.public javax.naming.Context getServerContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |