org.objectweb.jonas.naming.NamingManager Class Reference

Collaboration diagram for org.objectweb.jonas.naming.NamingManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

InitialContext getInitialContext ()
HandleDelegate getHandleDelegate ()
Context createEnvironmentContext (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)
Hashtable getEnv ()
Context createImmutableEnvironmentContext (String namespace) throws NamingException
Context getServerContext ()

Static Public Member Functions

NamingManager getInstance () throws NamingException

Detailed Description

Naming Manager for an EJB Server. this singleton class must exist in each jonas server.
Author:
Philippe Durieux

Philippe Coq : Monolog

Florent Benoit & Ludovic Bert : Context for web container

Definition at line 56 of file NamingManager.java.


Member Function Documentation

Context org.objectweb.jonas.naming.NamingManager.createEnvironmentContext String  namespace  )  throws NamingException
 

Create Context for application and component environments. (formally known as createComponentContext)

Parameters:
namespace namespace to used for the Context
Returns:
a java: context with comp/ subcontext
Exceptions:
NamingException if the creation of the java: context failed.

Definition at line 179 of file NamingManager.java.

References org.objectweb.jonas.naming.CompNamingContext.createSubcontext(), org.objectweb.jonas.naming.NamingManager.getHandleDelegate(), org.objectweb.jonas.naming.CompNamingContext.lookup(), and org.objectweb.jonas.naming.CompNamingContext.rebind().

Referenced by org.objectweb.jonas.naming.NamingManager.getServerContext().

Here is the call graph for this function:

Context org.objectweb.jonas.naming.NamingManager.createImmutableEnvironmentContext String  namespace  )  throws NamingException
 

Create Immutable Context. Not implemented !

Parameters:
namespace namespace to used for the Context
Returns:
Context an immutable context
Exceptions:
NamingException if the creation of the java: context failed.

Definition at line 350 of file NamingManager.java.

Context org.objectweb.jonas.naming.NamingManager.getComponentContext ClassLoader  cl  ) 
 

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.

Definition at line 318 of file NamingManager.java.

Context org.objectweb.jonas.naming.NamingManager.getComponentContext  )  throws NamingException
 

Get the Context associated with the current thread or to a class loader

Returns:
Context the component context.
Exceptions:
NamingException When operation is not allowed

Definition at line 226 of file NamingManager.java.

References org.objectweb.jonas.naming.NamingManager.getServerContext().

Here is the call graph for this function:

Hashtable org.objectweb.jonas.naming.NamingManager.getEnv  ) 
 

Return the environment for JNDI This is used only for handles today.

Returns:
Hashtable the environment.

Definition at line 340 of file NamingManager.java.

HandleDelegate org.objectweb.jonas.naming.NamingManager.getHandleDelegate  ) 
 

Returns:
The HandleDelegate implementation for this server

Definition at line 165 of file NamingManager.java.

Referenced by org.objectweb.jonas.naming.NamingManager.createEnvironmentContext().

InitialContext org.objectweb.jonas.naming.NamingManager.getInitialContext  ) 
 

Get the initialContext used in this jonas server.

Returns:
InitialContext the initial context.

Definition at line 158 of file NamingManager.java.

Referenced by org.objectweb.jonas.server.Server.start().

NamingManager org.objectweb.jonas.naming.NamingManager.getInstance  )  throws NamingException [static]
 

Return the unique instance of a NamingManager.

Returns:
NamingManager the unique instance.
Exceptions:
NamingException if it failed.

Definition at line 143 of file NamingManager.java.

Context org.objectweb.jonas.naming.NamingManager.getServerContext  ) 
 

Get the server component context. This is used only internally in the jonas NamingManager.

Returns:
Context the server component context.

Definition at line 364 of file NamingManager.java.

References org.objectweb.jonas.naming.NamingManager.createEnvironmentContext().

Referenced by org.objectweb.jonas.naming.NamingManager.getComponentContext().

Here is the call graph for this function:

void org.objectweb.jonas.naming.NamingManager.setClientContainerComponentContext Context  ctx  ) 
 

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

Parameters:
ctx the context to set

Definition at line 308 of file NamingManager.java.

void org.objectweb.jonas.naming.NamingManager.setComponentContext Context  ctx,
ClassLoader  cl
 

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.

Definition at line 297 of file NamingManager.java.

Context org.objectweb.jonas.naming.NamingManager.setComponentContext Context  ctx  ) 
 

Associate this CompNamingContext with the current thread. This method should be called in preinvoke/postinvoke and when we build the bean environment or web environment.

Parameters:
ctx the context to associate to the current thread.
Returns:
Context the context of the thread

Definition at line 275 of file NamingManager.java.

void org.objectweb.jonas.naming.NamingManager.unSetComponentContext ClassLoader  cl  ) 
 

Remove the CompNamingContext associated with the given classloader.

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

Definition at line 329 of file NamingManager.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:16 2005 for JOnAS by  doxygen 1.3.9.1