org.objectweb.jonas_lib.naming.ContainerNaming Interface Reference

List of all members.

Public Member Functions

Context createEnvironmentContext (String namespace) throws NamingException

Package Functions

Context createImmutableEnvironmentContext (String namespace) throws NamingException
Context getComponentContext () throws NamingException
Context setComponentContext (Context ctx)
void setComponentContext (Context ctx, ClassLoader cl)
void setClientContainerComponentContext (Context ctx)
Context getComponentContext (ClassLoader cl)
void unSetComponentContext (ClassLoader cl)
InitialContext getInitialContext ()
Hashtable getEnv ()

Detailed Description

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

Definition at line 38 of file ContainerNaming.java.


Member Function Documentation

Context org.objectweb.jonas_lib.naming.ContainerNaming.createEnvironmentContext String  namespace  )  throws NamingException
 

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.
 
Returns:
Naming context for component environment
Exceptions:
NamingException If exception encountered creating namespace.

Referenced by org.objectweb.jonas_ejb.container.JFactory.init(), and org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.setGlobalNamingResources().

Context org.objectweb.jonas_lib.naming.ContainerNaming.createImmutableEnvironmentContext String  namespace  )  throws NamingException [package]
 

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.
 
Returns:
Naming context for component environment
Exceptions:
NamingException If context namespace does not exist.

Context org.objectweb.jonas_lib.naming.ContainerNaming.getComponentContext ClassLoader  cl  )  [package]
 

Return the CompNamingContext associated with the given classloader.

Parameters:
cl the classloader which is bind to the context.
Returns:
the CompNamingContext associated with the given classloader.

Context org.objectweb.jonas_lib.naming.ContainerNaming.getComponentContext  )  throws NamingException [package]
 

Return the Context associated with the current thread.

Returns:
Context for current thread.
Exceptions:
NamingException If context namespace does not exist.

Referenced by org.objectweb.jonas.ws.AbsWebServicesServiceImpl.completeWSDeployment(), org.objectweb.jonas_ejb.container.JTimerHandle.getTimer(), and org.objectweb.jonas_ejb.container.JStatefulContext.JStatefulContext().

Hashtable org.objectweb.jonas_lib.naming.ContainerNaming.getEnv  )  [package]
 

Returns:
the environment associated to this initial context

Referenced by org.objectweb.jonas_ejb.container.JFactory.getEnv().

InitialContext org.objectweb.jonas_lib.naming.ContainerNaming.getInitialContext  )  [package]
 

Gets the initial context

Returns:
the initial context

Referenced by org.objectweb.jonas_ejb.container.JContainer.addBean(), and org.objectweb.jonas_ejb.container.JFactory.getInitialContext().

void org.objectweb.jonas_lib.naming.ContainerNaming.setClientContainerComponentContext Context  ctx  )  [package]
 

Set the context used by client container (per JVM instead of per thread)

Parameters:
ctx the context to set

void org.objectweb.jonas_lib.naming.ContainerNaming.setComponentContext Context  ctx,
ClassLoader  cl
[package]
 

Associate the specified CompNamingContext with the given classloader.

Parameters:
ctx the context to associate to the classloader.
cl the classloader which is bind to the context.

Context org.objectweb.jonas_lib.naming.ContainerNaming.setComponentContext Context  ctx  )  [package]
 

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.
Returns:
Previous context setting for current thread.

Referenced by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doStart(), org.objectweb.jonas_ejb.container.JFactory.resetComponentContext(), org.objectweb.jonas_ejb.container.JContainer.setBeanEnvironment(), org.objectweb.jonas_ejb.container.JFactory.setComponentContext(), and org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.setGlobalNamingResources().

void org.objectweb.jonas_lib.naming.ContainerNaming.unSetComponentContext ClassLoader  cl  )  [package]
 

Remove the CompNamingContext associated with the given classloader.

Parameters:
cl the classloader which is bind to the context.


The documentation for this interface was generated from the following file:
Generated on Tue Feb 15 15:13:09 2005 for JOnAS by  doxygen 1.3.9.1