org.objectweb.jonas.naming.CompNamingContext Class Reference

List of all members.

Public Member Functions

 CompNamingContext (String id, Hashtable env)
 CompNamingContext (String id)
Object lookup (Name name) throws NamingException
Object lookup (String name) throws NamingException
void bind (Name name, Object obj) throws NamingException
void bind (String name, Object obj) throws NamingException
void rebind (Name name, Object obj) throws NamingException
void rebind (String name, Object obj) throws NamingException
void unbind (Name name) throws NamingException
void unbind (String name) throws NamingException
void rename (Name oldName, Name newName) throws NamingException
void rename (String oldName, String newName) throws NamingException
NamingEnumeration list (Name name) throws NamingException
NamingEnumeration list (String name) throws NamingException
NamingEnumeration listBindings (Name name) throws NamingException
NamingEnumeration listBindings (String name) throws NamingException
void destroySubcontext (Name name) throws NamingException
void destroySubcontext (String name) throws NamingException
Context createSubcontext (Name name) throws NamingException
Context createSubcontext (String name) throws NamingException
Object lookupLink (Name name) throws NamingException
Object lookupLink (String name) throws NamingException
NameParser getNameParser (Name name) throws NamingException
NameParser getNameParser (String name) throws NamingException
Name composeName (Name name, Name prefix) throws NamingException
String composeName (String name, String prefix) throws NamingException
Object addToEnvironment (String propName, Object propVal) throws NamingException
Object removeFromEnvironment (String propName) throws NamingException
Hashtable getEnvironment () throws NamingException
void close () throws NamingException
String getNameInNamespace ()

Detailed Description

Implementation of Context interface for EJB Environment. Must handle subContexts (because of jndi/, ejb/, ...)

Author:
Philippe Durieux

Philippe Coq monolog

Florent Benoit 2003.06.13 : handle Reference object for the lookup.

Definition at line 62 of file CompNamingContext.java.


Constructor & Destructor Documentation

org.objectweb.jonas.naming.CompNamingContext.CompNamingContext String  id,
Hashtable  env
 

Constructor

Parameters:
id id of the context.
env initial environment.

Definition at line 94 of file CompNamingContext.java.

Referenced by org.objectweb.jonas.naming.CompNamingContext.createSubcontext().

org.objectweb.jonas.naming.CompNamingContext.CompNamingContext String  id  ) 
 

Constructor

Parameters:
id id of the context.

Definition at line 107 of file CompNamingContext.java.


Member Function Documentation

Object org.objectweb.jonas.naming.CompNamingContext.addToEnvironment String  propName,
Object  propVal
throws NamingException
 

Adds a new environment property to the environment of this context. If the property already exists, its value is overwritten.

Parameters:
propName the name of the environment property to add; may not be null
propVal the value of the property to add; may not be null
Returns:
the previous value of the property, or null if the property was not in the environment before
Exceptions:
NamingException if a naming exception is encountered

Definition at line 661 of file CompNamingContext.java.

void org.objectweb.jonas.naming.CompNamingContext.bind String  name,
Object  obj
throws NamingException
 

Binds a name to an object.

Parameters:
name the name to bind; may not be empty
obj the object to bind; possibly null
Exceptions:
NamingException if a naming exception is encountered
See also:
javax.naming.directory.InvalidAttributesException

javax.naming.NameAlreadyBoundException

Definition at line 220 of file CompNamingContext.java.

References org.objectweb.jonas.naming.CompNamingContext.createSubcontext().

Here is the call graph for this function:

void org.objectweb.jonas.naming.CompNamingContext.bind Name  name,
Object  obj
throws NamingException
 

Binds a name to an object. Delegate to the String version.

Parameters:
name the name to bind; may not be empty
obj the object to bind; possibly null
Exceptions:
NamingException if a naming exception is encountered
See also:
javax.naming.directory.InvalidAttributesException

javax.naming.NameAlreadyBoundException

Definition at line 206 of file CompNamingContext.java.

void org.objectweb.jonas.naming.CompNamingContext.close  )  throws NamingException
 

Closes this context.

Exceptions:
NamingException if a naming exception is encountered

Definition at line 711 of file CompNamingContext.java.

String org.objectweb.jonas.naming.CompNamingContext.composeName String  name,
String  prefix
throws NamingException
 

Composes the name of this context with a name relative to this context: Not supported.

Parameters:
name a name relative to this context
prefix the name of this context relative to one of its ancestors
Returns:
the composition of prefix and name
Exceptions:
NamingException if a naming exception is encountered

Definition at line 642 of file CompNamingContext.java.

Name org.objectweb.jonas.naming.CompNamingContext.composeName Name  name,
Name  prefix
throws NamingException
 

Composes the name of this context with a name relative to this context.

Parameters:
name a name relative to this context
prefix the name of this context relative to one of its ancestors
Returns:
the composition of prefix and name
Exceptions:
NamingException if a naming exception is encountered

Definition at line 627 of file CompNamingContext.java.

Context org.objectweb.jonas.naming.CompNamingContext.createSubcontext String  name  )  throws NamingException
 

Creates and binds a new context.

Parameters:
name the name of the context to create; may not be empty
Returns:
the newly created context
Exceptions:
NamingException if a naming exception is encountered
See also:
javax.naming.directory.InvalidAttributesException

javax.naming.NameAlreadyBoundException

Definition at line 524 of file CompNamingContext.java.

References org.objectweb.jonas.naming.CompNamingContext.CompNamingContext(), and org.objectweb.jonas.naming.CompNamingContext.createSubcontext().

Here is the call graph for this function:

Context org.objectweb.jonas.naming.CompNamingContext.createSubcontext Name  name  )  throws NamingException
 

Creates and binds a new context. Creates a new context with the given name and binds it in the target context.

Parameters:
name the name of the context to create; may not be empty
Returns:
the newly created context
Exceptions:
NamingException if a naming exception is encountered
See also:
javax.naming.directory.InvalidAttributesException

javax.naming.NameAlreadyBoundException

Definition at line 509 of file CompNamingContext.java.

Referenced by org.objectweb.jonas.naming.CompNamingContext.bind(), org.objectweb.jonas.naming.NamingManager.createEnvironmentContext(), org.objectweb.jonas.naming.CompNamingContext.createSubcontext(), and org.objectweb.jonas.naming.CompNamingContext.rebind().

void org.objectweb.jonas.naming.CompNamingContext.destroySubcontext String  name  )  throws NamingException
 

Destroys the named context and removes it from the namespace. Not supported yet.

Parameters:
name the name of the context to be destroyed; may not be empty
Exceptions:
NamingException if a naming exception is encountered

Definition at line 490 of file CompNamingContext.java.

void org.objectweb.jonas.naming.CompNamingContext.destroySubcontext Name  name  )  throws NamingException
 

Destroys the named context and removes it from the namespace. Not supported yet.

Parameters:
name the name of the context to be destroyed; may not be empty
Exceptions:
NamingException if a naming exception is encountered

Definition at line 479 of file CompNamingContext.java.

Hashtable org.objectweb.jonas.naming.CompNamingContext.getEnvironment  )  throws NamingException
 

Retrieves the environment in effect for this context.

Returns:
the environment of this context; never null
Exceptions:
NamingException if a naming exception is encountered

Definition at line 696 of file CompNamingContext.java.

String org.objectweb.jonas.naming.CompNamingContext.getNameInNamespace  ) 
 

Retrieves the full name of this context within its own namespace.

Returns:
this context's name in its own namespace; never null

Definition at line 720 of file CompNamingContext.java.

NameParser org.objectweb.jonas.naming.CompNamingContext.getNameParser String  name  )  throws NamingException
 

Retrieves the parser associated with the named context.

Parameters:
name the name of the context from which to get the parser
Returns:
a name parser that can parse compound names into their atomic components
Exceptions:
NamingException if a naming exception is encountered

Definition at line 614 of file CompNamingContext.java.

NameParser org.objectweb.jonas.naming.CompNamingContext.getNameParser Name  name  )  throws NamingException
 

Retrieves the parser associated with the named context.

Parameters:
name the name of the context from which to get the parser
Returns:
a name parser that can parse compound names into their atomic components
Exceptions:
NamingException if a naming exception is encountered

Definition at line 601 of file CompNamingContext.java.

NamingEnumeration org.objectweb.jonas.naming.CompNamingContext.list String  name  )  throws NamingException
 

Enumerates the names bound in the named context, along with the class names of objects bound to them.

Parameters:
name the name of the context to list
Returns:
an enumeration of the names and class names of the bindings in this context. Each element of the enumeration is of type NameClassPair.
Exceptions:
NamingException if a naming exception is encountered

Definition at line 408 of file CompNamingContext.java.

References org.objectweb.jonas.naming.CompNamingContext.lookup().

Here is the call graph for this function:

NamingEnumeration org.objectweb.jonas.naming.CompNamingContext.list Name  name  )  throws NamingException
 

Enumerates the names bound in the named context, along with the class names of objects bound to them. The contents of any subcontexts are not included.

Parameters:
name the name of the context to list
Returns:
an enumeration of the names and class names of the bindings in this context. Each element of the enumeration is of type NameClassPair.
Exceptions:
NamingException if a naming exception is encountered

Definition at line 393 of file CompNamingContext.java.

NamingEnumeration org.objectweb.jonas.naming.CompNamingContext.listBindings String  name  )  throws NamingException
 

Enumerates the names bound in the named context, along with the objects bound to them.

Parameters:
name the name of the context to list
Returns:
an enumeration of the bindings in this context. Each element of the enumeration is of type Binding.
Exceptions:
NamingException if a naming exception is encountered

Definition at line 456 of file CompNamingContext.java.

References org.objectweb.jonas.naming.CompNamingContext.lookup().

Here is the call graph for this function:

NamingEnumeration org.objectweb.jonas.naming.CompNamingContext.listBindings Name  name  )  throws NamingException
 

Enumerates the names bound in the named context, along with the objects bound to them. The contents of any subcontexts are not included.

If a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.

Parameters:
name the name of the context to list
Returns:
an enumeration of the bindings in this context. Each element of the enumeration is of type Binding.
Exceptions:
NamingException if a naming exception is encountered

Definition at line 441 of file CompNamingContext.java.

Object org.objectweb.jonas.naming.CompNamingContext.lookup String  name  )  throws NamingException
 

Retrieves the named object.

Parameters:
name the name of the object to look up
Returns:
the object bound to name
Exceptions:
NamingException if a naming exception is encountered

Definition at line 137 of file CompNamingContext.java.

Object org.objectweb.jonas.naming.CompNamingContext.lookup Name  name  )  throws NamingException
 

Retrieves the named object. Delegate to the String version.

Parameters:
name the name of the object to look up
Returns:
the object bound to name
Exceptions:
NamingException if a naming exception is encountered

Definition at line 125 of file CompNamingContext.java.

Referenced by org.objectweb.jonas.naming.NamingManager.createEnvironmentContext(), org.objectweb.jonas.resource.ResourceServiceImpl.doStart(), org.objectweb.jonas.naming.CompNamingContext.list(), org.objectweb.jonas.naming.CompNamingContext.listBindings(), org.objectweb.jonas.naming.CompNamingContext.lookupLink(), org.objectweb.jonas.naming.CompNamingContext.rename(), and org.objectweb.jonas.resource.ResourceServiceImpl.unRegisterRar().

Object org.objectweb.jonas.naming.CompNamingContext.lookupLink String  name  )  throws NamingException
 

Retrieves the named object, following links except for the terminal atomic component of the name. If the object bound to name is not a link, returns the object itself.

Parameters:
name the name of the object to look up
Returns:
the object bound to name, not following the terminal link (if any)
Exceptions:
NamingException if a naming exception is encountered

Definition at line 583 of file CompNamingContext.java.

References org.objectweb.jonas.naming.CompNamingContext.lookup().

Here is the call graph for this function:

Object org.objectweb.jonas.naming.CompNamingContext.lookupLink Name  name  )  throws NamingException
 

Retrieves the named object, following links except for the terminal atomic component of the name. If the object bound to name is not a link, returns the object itself.

Parameters:
name the name of the object to look up
Returns:
the object bound to name, not following the terminal link (if any).
Exceptions:
NamingException if a naming exception is encountered

Definition at line 566 of file CompNamingContext.java.

void org.objectweb.jonas.naming.CompNamingContext.rebind String  name,
Object  obj
throws NamingException
 

Binds a name to an object, overwriting any existing binding.

Parameters:
name the name to bind; may not be empty
obj the object to bind; possibly null
Exceptions:
NamingException if a naming exception is encountered
See also:
javax.naming.directory.InvalidAttributesException

javax.naming.InvalidNameException

Definition at line 277 of file CompNamingContext.java.

References org.objectweb.jonas.naming.CompNamingContext.createSubcontext().

Here is the call graph for this function:

void org.objectweb.jonas.naming.CompNamingContext.rebind Name  name,
Object  obj
throws NamingException
 

Binds a name to an object, overwriting any existing binding.

Parameters:
name the name to bind; may not be empty
obj the object to bind; possibly null
Exceptions:
NamingException if a naming exception is encountered
See also:
javax.naming.directory.InvalidAttributesException

Definition at line 261 of file CompNamingContext.java.

Referenced by org.objectweb.jonas.naming.NamingManager.createEnvironmentContext(), org.objectweb.jonas.service.ServiceManager.createServiceContextFor(), org.objectweb.jonas.ear.EarServiceImpl.deployEar(), org.objectweb.jonas.resource.ResourceServiceImpl.deployRars(), org.objectweb.jonas.web.AbsJWebContainerServiceImpl.deployWars(), org.objectweb.jonas.resource.ResourceServiceImpl.doStart(), org.objectweb.jonas.naming.CompNamingContext.rename(), org.objectweb.jonas.resource.ResourceServiceImpl.unDeployRarMBean(), org.objectweb.jonas.resource.ResourceServiceImpl.unDeployRars(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.unDeployWars().

Object org.objectweb.jonas.naming.CompNamingContext.removeFromEnvironment String  propName  )  throws NamingException
 

Removes an environment property from the environment of this context.

Parameters:
propName the name of the environment property to remove; may not be null
Returns:
the previous value of the property, or null if the property was not in the environment
Exceptions:
NamingException if a naming exception is encountered

Definition at line 680 of file CompNamingContext.java.

void org.objectweb.jonas.naming.CompNamingContext.rename String  oldName,
String  newName
throws NamingException
 

Binds a new name to the object bound to an old name, and unbinds the old name.

Parameters:
oldName the name of the existing binding; may not be empty
newName the name of the new binding; may not be empty
Exceptions:
NamingException if a naming exception is encountered

Definition at line 373 of file CompNamingContext.java.

References org.objectweb.jonas.naming.CompNamingContext.lookup(), org.objectweb.jonas.naming.CompNamingContext.rebind(), and org.objectweb.jonas.naming.CompNamingContext.unbind().

Here is the call graph for this function:

void org.objectweb.jonas.naming.CompNamingContext.rename Name  oldName,
Name  newName
throws NamingException
 

Binds a new name to the object bound to an old name, and unbinds the old name.

Parameters:
oldName the name of the existing binding; may not be empty
newName the name of the new binding; may not be empty
Exceptions:
NamingException if a naming exception is encountered

Definition at line 360 of file CompNamingContext.java.

void org.objectweb.jonas.naming.CompNamingContext.unbind String  name  )  throws NamingException
 

Unbinds the named object.

Parameters:
name the name to unbind; may not be empty
Exceptions:
NamingException if a naming exception is encountered
See also:
javax.naming.NameNotFoundException

javax.naming.InvalidNameException

Definition at line 324 of file CompNamingContext.java.

void org.objectweb.jonas.naming.CompNamingContext.unbind Name  name  )  throws NamingException
 

Unbinds the named object.

Parameters:
name the name to unbind; may not be empty
Exceptions:
NamingException if a naming exception is encountered
See also:
javax.naming.NameNotFoundException

Definition at line 311 of file CompNamingContext.java.

Referenced by org.objectweb.jonas.naming.CompNamingContext.rename().


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