org.apache.catalina.core
public class NamingContextListener extends Object implements LifecycleListener, ContainerListener, PropertyChangeListener
Version: $Revision: 892860 $ $Date: 2009-12-21 17:22:00 +0100 (Mon, 21 Dec 2009) $
Field Summary | |
---|---|
protected Context | compCtx
Comp context. |
protected Object | container
Associated container. |
protected Context | envCtx
Env context. |
protected boolean | initialized
Initialized flag. |
protected Log | logger |
protected String | name
Name of the associated naming context. |
protected NamingContext | namingContext
Associated JNDI context. |
protected NamingResources | namingResources
Associated naming resources. |
protected HashMap | objectNames
Objectnames hashtable. |
protected static StringManager | sm
The string manager for this package. |
Method Summary | |
---|---|
void | addEjb(ContextEjb ejb)
Set the specified EJBs in the naming context. |
void | addEnvironment(ContextEnvironment env)
Set the specified environment entries in the naming context. |
void | addLocalEjb(ContextLocalEjb localEjb)
Set the specified local EJBs in the naming context. |
void | addResource(ContextResource resource)
Set the specified resources in the naming context. |
void | addResourceEnvRef(ContextResourceEnvRef resourceEnvRef)
Set the specified resources in the naming context. |
void | addResourceLink(ContextResourceLink resourceLink)
Set the specified resource link in the naming context. |
void | addService(ContextService service)
Set the specified web service in the naming context. |
void | containerEvent(ContainerEvent event)
Acknowledge the occurrence of the specified event.
|
protected ObjectName | createObjectName(ContextResource resource)
Create an ObjectName for this
ContextResource object.
|
Context | getCompContext()
Return the comp context. |
Context | getEnvContext()
Return the env context. |
String | getName()
Return the "name" property. |
NamingContext | getNamingContext()
Return the associated naming context. |
void | lifecycleEvent(LifecycleEvent event)
Acknowledge the occurrence of the specified event.
|
void | propertyChange(PropertyChangeEvent event)
Process property change events.
|
void | removeEjb(String name)
Set the specified EJBs in the naming context. |
void | removeEnvironment(String name)
Set the specified environment entries in the naming context. |
void | removeLocalEjb(String name)
Set the specified local EJBs in the naming context. |
void | removeResource(String name)
Set the specified resources in the naming context. |
void | removeResourceEnvRef(String name)
Set the specified resources in the naming context. |
void | removeResourceLink(String name)
Set the specified resources in the naming context. |
void | removeService(String name)
Set the specified web services in the naming context. |
void | setName(String name)
Set the "name" property.
|
Parameters: event ContainerEvent that has occurred
ObjectName
for this
ContextResource
object.
Parameters: resource The resource
Returns: ObjectName The object name
Throws: MalformedObjectNameException if a name cannot be created
Parameters: event LifecycleEvent that has occurred
Parameters: event The property change event that has occurred
Parameters: name The new name