Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » catalina » deploy » [javadoc | source]
org.apache.catalina.deploy
public class: NamingResources [javadoc | source]
java.lang.Object
   org.apache.catalina.deploy.NamingResources

All Implemented Interfaces:
    Serializable

Holds and manages the naming resources defined in the J2EE Enterprise Naming Context and their associated JNDI context.
Field Summary
protected  PropertyChangeSupport support    The property change support for this component. 
Constructor:
 public NamingResources() 
Method from org.apache.catalina.deploy.NamingResources Summary:
addEjb,   addEnvironment,   addLocalEjb,   addMessageDestinationRef,   addPropertyChangeListener,   addResource,   addResourceEnvRef,   addResourceLink,   addService,   exists,   findEjb,   findEjbs,   findEnvironment,   findEnvironments,   findLocalEjb,   findLocalEjbs,   findMessageDestinationRef,   findMessageDestinationRefs,   findResource,   findResourceEnvRef,   findResourceEnvRefs,   findResourceLink,   findResourceLinks,   findResources,   findService,   findServices,   getContainer,   getTransaction,   removeEjb,   removeEnvironment,   removeLocalEjb,   removeMessageDestinationRef,   removePropertyChangeListener,   removeResource,   removeResourceEnvRef,   removeResourceLink,   removeService,   setContainer,   setTransaction
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.deploy.NamingResources Detail:
 public  void addEjb(ContextEjb ejb) 
    Add an EJB resource reference for this web application.
 public  void addEnvironment(ContextEnvironment environment) 
    Add an environment entry for this web application.
 public  void addLocalEjb(ContextLocalEjb ejb) 
    Add a local EJB resource reference for this web application.
 public  void addMessageDestinationRef(MessageDestinationRef mdr) 
    Add a message destination reference for this web application.
 public  void addPropertyChangeListener(PropertyChangeListener listener) 
    Add a property change listener to this component.
 public  void addResource(ContextResource resource) 
    Add a resource reference for this web application.
 public  void addResourceEnvRef(ContextResourceEnvRef resource) 
    Add a resource environment reference for this web application.
 public  void addResourceLink(ContextResourceLink resourceLink) 
    Add a resource link for this web application.
 public  void addService(ContextService service) 
    Add a web service reference for this web application.
 public boolean exists(String name) 
    Return true if the name specified already exists.
 public ContextEjb findEjb(String name) 
    Return the EJB resource reference with the specified name, if any; otherwise, return null.
 public ContextEjb[] findEjbs() 
    Return the defined EJB resource references for this application. If there are none, a zero-length array is returned.
 public ContextEnvironment findEnvironment(String name) 
    Return the environment entry with the specified name, if any; otherwise, return null.
 public ContextEnvironment[] findEnvironments() 
    Return the set of defined environment entries for this web application. If none have been defined, a zero-length array is returned.
 public ContextLocalEjb findLocalEjb(String name) 
    Return the local EJB resource reference with the specified name, if any; otherwise, return null.
 public ContextLocalEjb[] findLocalEjbs() 
    Return the defined local EJB resource references for this application. If there are none, a zero-length array is returned.
 public MessageDestinationRef findMessageDestinationRef(String name) 
    Return the message destination reference with the specified name, if any; otherwise, return null.
 public MessageDestinationRef[] findMessageDestinationRefs() 
    Return the defined message destination references for this application. If there are none, a zero-length array is returned.
 public ContextResource findResource(String name) 
    Return the resource reference with the specified name, if any; otherwise return null.
 public ContextResourceEnvRef findResourceEnvRef(String name) 
    Return the resource environment reference type for the specified name, if any; otherwise return null.
 public ContextResourceEnvRef[] findResourceEnvRefs() 
    Return the set of resource environment reference names for this web application. If none have been specified, a zero-length array is returned.
 public ContextResourceLink findResourceLink(String name) 
    Return the resource link with the specified name, if any; otherwise return null.
 public ContextResourceLink[] findResourceLinks() 
    Return the defined resource links for this application. If none have been defined, a zero-length array is returned.
 public ContextResource[] findResources() 
    Return the defined resource references for this application. If none have been defined, a zero-length array is returned.
 public ContextService findService(String name) 
    Return the web service reference for the specified name, if any; otherwise return null.
 public ContextService[] findServices() 
    Return the defined web service references for this application. If none have been defined, a zero-length array is returned.
 public Object getContainer() 
    Get the container with which the naming resources are associated.
 public ContextTransaction getTransaction() 
    Get the transaction object.
 public  void removeEjb(String name) 
    Remove any EJB resource reference with the specified name.
 public  void removeEnvironment(String name) 
    Remove any environment entry with the specified name.
 public  void removeLocalEjb(String name) 
    Remove any local EJB resource reference with the specified name.
 public  void removeMessageDestinationRef(String name) 
    Remove any message destination reference with the specified name.
 public  void removePropertyChangeListener(PropertyChangeListener listener) 
    Remove a property change listener from this component.
 public  void removeResource(String name) 
    Remove any resource reference with the specified name.
 public  void removeResourceEnvRef(String name) 
    Remove any resource environment reference with the specified name.
 public  void removeResourceLink(String name) 
    Remove any resource link with the specified name.
 public  void removeService(String name) 
    Remove any web service reference with the specified name.
 public  void setContainer(Object container) 
    Set the container with which the naming resources are associated.
 public  void setTransaction(ContextTransaction transaction) 
    Set the transaction object.