| |
|
| org.objectweb.jonas_lib.naming.ContainerNaming
All known Subclasses: org.objectweb.jonas.naming.NamingManager,
ContainerNaming | public interface ContainerNaming (Code) | | Provide naming services for Web and EJB containers. Containers use this
interface for binding the environment entries, remote object references,
resource factories and for managing the naming context of the current
thread.
author: Lutris |
createEnvironmentContext | Context createEnvironmentContext(String namespace) throws NamingException(Code) | | Create context for application and component environments.
Called by Web Container for each Web Application (as defined in
web.xml). Called by EJB Container for each ejb component (as defined
in ejb-jar.xml). The returned context provides an independent
namespace for each components environment values, and resources.
Parameters: namespace - Subcontext name(s) to create under Server Root.Usually consists of application name + component name.Examples:"App1/WebWar1" for Web Application"App1/EJBJar1/EJBName" for ejb in Enterprise Application. Naming context for component environment throws: NamingException - If exception encountered creating namespace. |
createImmutableEnvironmentContext | Context createImmutableEnvironmentContext(String namespace) throws NamingException(Code) | | Create immutable context for application and component environments.
Called by Web Container for each Web Application (as defined in
web.xml). Called by EJB Container for each ejb component (as defined
in ejb-jar.xml). The returned context provides an independent
namespace for each components environment values, and resources. This
context must exist in the underlying name service. It must be
previously created by an earlier deployment.
Parameters: namespace - Subcontext name(s) to create under Server Root.Usually consists of application name + component name.Examples:"App1/WebWar1" for Web Application"App1/EJBJar1/EJBName" for ejb in Enterprise Application. Naming context for component environment throws: NamingException - If context namespace does not exist. |
getComponentContext | Context getComponentContext() throws NamingException(Code) | | Return the Context associated with the current thread.
Context for current thread. throws: NamingException - If context namespace does not exist. |
getComponentContext | Context getComponentContext(ClassLoader cl)(Code) | | Return the CompNamingContext associated with the given classloader.
Parameters: cl - the classloader which is bind to the context. the CompNamingContext associated with the given classloader. |
getEnv | Hashtable getEnv()(Code) | | the environment associated to this initial context |
getInitialContext | InitialContext getInitialContext()(Code) | | Gets the initial context
the initial context |
resetComponentContext | void resetComponentContext(Context ctx)(Code) | | Set back the context with the given value.
Don't return the previous context, use setComponentContext() method for this.
Parameters: ctx - the context to associate to the current thread. |
setClientContainerComponentContext | void setClientContainerComponentContext(Context ctx)(Code) | | Set the context used by client container (per JVM instead of per thread)
Parameters: ctx - the context to set |
setComponentContext | Context setComponentContext(Context ctx)(Code) | | Aassociate this Context with the current thread.
This method should be called in preinvoke/postinvoke
and when we build the bean environment.
Parameters: ctx - Context to associate with the current thread. Previous context setting for current thread. |
setComponentContext | void setComponentContext(Context ctx, ClassLoader cl)(Code) | | Associate the specified CompNamingContext with the given classloader.
Parameters: ctx - the context to associate to the classloader. Parameters: cl - the classloader which is bind to the context. |
unSetComponentContext | void unSetComponentContext(ClassLoader cl)(Code) | | Remove the CompNamingContext associated with the given classloader.
Parameters: cl - the classloader which is bind to the context. |
|
|
|