| Modifier and Type | Field and Description |
|---|---|
| private Object | container
Associated container object. |
| private final Map | ejbs
The EJB resource references for this web application, keyed by name. |
| private final Set | entries
Set of naming entries, keyed by name. |
| private final Map | envs
The environment entries for this web application, keyed by name. |
| private final Map | localEjbs
The local EJB resource references for this web application, keyed by name. |
| private static final Log | |
| private final Map | mdrs
The message destination references for this web application, keyed by name. |
| private final HashMap | resourceEnvRefs
The resource environment references for this web application, keyed by name. |
| private final HashMap | resourceLinks
The resource links for this web application, keyed by name. |
| private volatile boolean | |
| private final HashMap | resources
The resource references for this web application, keyed by name. |
| private static final long | |
| private final HashMap | services
The web service references for this web application, keyed by name. |
| private static final StringManager | |
| protected final PropertyChangeSupport | support
The property change support for this component. |
| private ContextTransaction | transaction
The transaction for this webapp. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addEjb(ContextEjb
New EJB resource reference ejb)Add an EJB resource reference for this web application. |
| public void | addEnvironment(ContextEnvironment
New environment entry environment)Implements org. Add an environment entry for this web application. |
| public void | addLocalEjb(ContextLocalEjb
New EJB resource reference ejb)Add a local EJB resource reference for this web application. |
| public void | addMessageDestinationRef(MessageDestinationRef
New message destination reference mdr)Add a message destination reference for this web application. |
| public void | addPropertyChangeListener(PropertyChangeListener
The listener to add listener)Add a property change listener to this component. |
| public void | addResource(ContextResource
New resource reference resource)Implements org. Add a resource reference for this web application. |
| public void | addResourceEnvRef(ContextResourceEnvRef
The resource resource)Add a resource environment reference for this web application. |
| public void | addResourceLink(ContextResourceLink
New resource link resourceLink)Implements org. Add a resource link for this web application. |
| public void | addService(ContextService
New web service reference service)Add a web service reference for this web application. |
| private boolean | Returns: true if the type for the resource is now valid (if previously null this means
it is now set) or false if the current resource type is inconsistent with the injection
targets and/or cannot be determinedThe resource to check resource)Checks that the configuration of the type for the specified resource is consistent with any injection targets and if the type is not specified, tries to configure the type based on the injection targets |
| private void | |
| private void | |
| protected void | destroyInternal()
Overrides org. Sub-classes wishing to perform additional clean-up should override this method, ensuring that super.destroyInternal() is the last call in the overriding method. |
| public ContextEjb | |
| public ContextEjb[] | Returns: the defined EJB resource references for this application. If there are none, a zero-length array is returned.
|
| public ContextEnvironment | Returns: the environment entry with the specified name, if any; otherwise, returnnull.Name of the desired environment entry name)
|
| public ContextEnvironment[] | Returns: the set of defined environment entries for this web application. If none have been defined, a zero-length array is returned.
|
| public ContextLocalEjb | Returns: the local EJB resource reference with the specified name, if any; otherwise, returnnull.Name of the desired EJB resource reference name)
|
| public ContextLocalEjb[] | Returns: the defined local EJB resource references for this application. If there are none, a zero-length array is returned.
|
| public MessageDestinationRef | Returns: the message destination reference with the specified name, if any; otherwise, returnnull.Name of the desired message destination reference name)
|
| public MessageDestinationRef[] | Returns: the defined message destination references for this application. If there are none, a zero-length array is returned.
|
| public ContextResource | Returns: the resource reference with the specified name, if any; otherwise returnnull.Name of the desired resource reference name)
|
| public ContextResourceEnvRef | Returns: the resource environment reference type for the specified name, if any; otherwise returnnull.Name of the desired resource environment reference name)
|
| public ContextResourceEnvRef[] | Returns: the set of resource environment reference names for this web application. If none have been specified, a zero-length array is returned.
|
| public ContextResourceLink | Returns: the resource link with the specified name, if any; otherwise returnnull.Name of the desired resource link name)
|
| public ContextResourceLink[] | Returns: the defined resource links for this application. If none have been defined, a zero-length array is returned.
|
| public ContextResource[] | Returns: the defined resource references for this application. If none have been defined, a zero-length array is returned.
|
| public ContextService | Returns: the web service reference for the specified name, if any; otherwise returnnull.Name of the desired web service name)
|
| public ContextService[] | Returns: the defined web service references for this application. If none have been defined, a zero-length array is returned.
|
| private Class | |
| public Object | Returns: the container with which the naming resources are associated.Implements org.
|
| protected String | getDomainInternal()
Implements abstract org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. |
| private Class | |
| protected String | getObjectNameKeyProperties()
Implements abstract org. Allow sub-classes to specify the key properties component of the
|
| private Server | |
| private Class | |
| public ContextTransaction | |
| protected void | initInternal()
Overrides org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method. |
| public void | |
| public void | removeEnvironment(String
Name of the environment entry to remove name)Implements org. Remove any environment entry with the specified name. |
| public void | removeLocalEjb(String
Name of the EJB resource reference to remove name)Remove any local EJB resource reference with the specified name. |
| public void | removeMessageDestinationRef(String
Name of the message destination resource reference to remove name)Remove any message destination reference with the specified name. |
| public void | removePropertyChangeListener(PropertyChangeListener
The listener to remove listener)Remove a property change listener from this component. |
| public void | removeResource(String
Name of the resource reference to remove name)Implements org. Remove any resource reference with the specified name. |
| public void | removeResourceEnvRef(String
Name of the resource environment reference to remove name)Remove any resource environment reference with the specified name. |
| public void | removeResourceLink(String
Name of the resource link to remove name)Implements org. Remove any resource link with the specified name. |
| public void | removeService(String
Name of the web service reference to remove name)Remove any web service reference with the specified name. |
| public void | setContainer(Object
the associated with the resources container)Set the container with which the naming resources are associated. |
| public void | |
| protected void | startInternal()
Implements abstract org. Sub-classes must ensure that the state is changed to
|
| protected void | stopInternal()
Implements abstract org. Sub-classes must ensure that the state is changed to
|
| container | back to summary |
|---|---|
| private Object container Associated container object. | |
| ejbs | back to summary |
|---|---|
| private final Map<String, ContextEjb> ejbs The EJB resource references for this web application, keyed by name. | |
| entries | back to summary |
|---|---|
| private final Set<String> entries Set of naming entries, keyed by name. | |
| envs | back to summary |
|---|---|
| private final Map<String, ContextEnvironment> envs The environment entries for this web application, keyed by name. | |
| localEjbs | back to summary |
|---|---|
| private final Map<String, ContextLocalEjb> localEjbs The local EJB resource references for this web application, keyed by name. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| mdrs | back to summary |
|---|---|
| private final Map<String, MessageDestinationRef> mdrs The message destination references for this web application, keyed by name. | |
| resourceEnvRefs | back to summary |
|---|---|
| private final HashMap<String, ContextResourceEnvRef> resourceEnvRefs The resource environment references for this web application, keyed by name. | |
| resourceLinks | back to summary |
|---|---|
| private final HashMap<String, ContextResourceLink> resourceLinks The resource links for this web application, keyed by name. | |
| resourceRequireExplicitRegistration | back to summary |
|---|---|
| private volatile boolean resourceRequireExplicitRegistration | |
| resources | back to summary |
|---|---|
| private final HashMap<String, ContextResource> resources The resource references for this web application, keyed by name. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| services | back to summary |
|---|---|
| private final HashMap<String, ContextService> services The web service references for this web application, keyed by name. | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| support | back to summary |
|---|---|
| protected final PropertyChangeSupport support The property change support for this component. | |
| transaction | back to summary |
|---|---|
| private ContextTransaction transaction The transaction for this webapp. | |
| NamingResourcesImpl | back to summary |
|---|---|
| public NamingResourcesImpl() Create a new NamingResources instance. | |
| addEjb | back to summary |
|---|---|
| public void addEjb(ContextEjb ejb) Add an EJB resource reference for this web application.
| |
| addEnvironment | back to summary |
|---|---|
| public void addEnvironment(ContextEnvironment environment) Implements org. Add an environment entry for this web application.
| |
| addLocalEjb | back to summary |
|---|---|
| public void addLocalEjb(ContextLocalEjb ejb) Add a local EJB resource reference for this web application.
| |
| addMessageDestinationRef | back to summary |
|---|---|
| public void addMessageDestinationRef(MessageDestinationRef mdr) Add a message destination reference for this web application.
| |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Add a property change listener to this component.
| |
| addResource | back to summary |
|---|---|
| public void addResource(ContextResource resource) Implements org. Add a resource reference for this web application.
| |
| addResourceEnvRef | back to summary |
|---|---|
| public void addResourceEnvRef(ContextResourceEnvRef resource) Add a resource environment reference for this web application.
| |
| addResourceLink | back to summary |
|---|---|
| public void addResourceLink(ContextResourceLink resourceLink) Implements org. Add a resource link for this web application.
| |
| addService | back to summary |
|---|---|
| public void addService(ContextService service) Add a web service reference for this web application.
| |
| checkResourceType | back to summary |
|---|---|
| private boolean checkResourceType(ResourceBase resource) Checks that the configuration of the type for the specified resource is consistent with any injection targets and if the type is not specified, tries to configure the type based on the injection targets
| |
| cleanUp | back to summary |
|---|---|
| private void cleanUp() Close those resources that an explicit close may help clean-up faster. | |
| cleanUp | back to summary |
|---|---|
| private void cleanUp(Object resource, String name, String closeMethod) Clean up a resource by calling the defined close method. For example, closing a database connection pool will close it's open connections. This will happen on GC but that leaves db connections open that may cause issues.
| |
| destroyInternal | back to summary |
|---|---|
| protected void destroyInternal() throws LifecycleException Overrides org. Doc from org. Sub-classes wishing to perform additional clean-up should override this method, ensuring that super.destroyInternal() is the last call in the overriding method.
| |
| findEjb | back to summary |
|---|---|
public ContextEjb findEjb(String name)
| |
| findEjbs | back to summary |
|---|---|
public ContextEjb[] findEjbs()
| |
| findEnvironment | back to summary |
|---|---|
public ContextEnvironment findEnvironment(String name)
| |
| findEnvironments | back to summary |
|---|---|
public ContextEnvironment[] findEnvironments()
| |
| findLocalEjb | back to summary |
|---|---|
public ContextLocalEjb findLocalEjb(String name)
| |
| findLocalEjbs | back to summary |
|---|---|
public ContextLocalEjb[] findLocalEjbs()
| |
| findMessageDestinationRef | back to summary |
|---|---|
public MessageDestinationRef findMessageDestinationRef(String name)
| |
| findMessageDestinationRefs | back to summary |
|---|---|
public MessageDestinationRef[] findMessageDestinationRefs()
| |
| findResource | back to summary |
|---|---|
public ContextResource findResource(String name)
| |
| findResourceEnvRef | back to summary |
|---|---|
public ContextResourceEnvRef findResourceEnvRef(String name)
| |
| findResourceEnvRefs | back to summary |
|---|---|
public ContextResourceEnvRef[] findResourceEnvRefs()
| |
| findResourceLink | back to summary |
|---|---|
public ContextResourceLink findResourceLink(String name)
| |
| findResourceLinks | back to summary |
|---|---|
public ContextResourceLink[] findResourceLinks()
| |
| findResources | back to summary |
|---|---|
public ContextResource[] findResources()
| |
| findService | back to summary |
|---|---|
public ContextService findService(String name)
| |
| findServices | back to summary |
|---|---|
public ContextService[] findServices()
| |
| getCompatibleType | back to summary |
|---|---|
| private Class | |
| getContainer | back to summary |
|---|---|
| public Object getContainer() Implements org. | |
| getDomainInternal | back to summary |
|---|---|
| protected String getDomainInternal() Implements abstract org. Doc from org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. | |
| getFieldType | back to summary |
|---|---|
| private Class | |
| getObjectNameKeyProperties | back to summary |
|---|---|
| protected String getObjectNameKeyProperties() Implements abstract org. Doc from org. Allow sub-classes to specify the key properties component of the
| |
| getServer | back to summary |
|---|---|
| private Server getServer() | |
| getSetterType | back to summary |
|---|---|
| private Class | |
| getTransaction | back to summary |
|---|---|
public ContextTransaction getTransaction()
| |
| initInternal | back to summary |
|---|---|
| protected void initInternal() throws LifecycleException Overrides org. Doc from org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method.
| |
| removeEjb | back to summary |
|---|---|
| public void removeEjb(String name) Remove any EJB resource reference with the specified name.
| |
| removeEnvironment | back to summary |
|---|---|
| public void removeEnvironment(String name) Implements org. Remove any environment entry with the specified name. | |
| removeLocalEjb | back to summary |
|---|---|
| public void removeLocalEjb(String name) Remove any local EJB resource reference with the specified name.
| |
| removeMessageDestinationRef | back to summary |
|---|---|
| public void removeMessageDestinationRef(String name) Remove any message destination reference with the specified name.
| |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Remove a property change listener from this component.
| |
| removeResource | back to summary |
|---|---|
| public void removeResource(String name) Implements org. Remove any resource reference with the specified name. | |
| removeResourceEnvRef | back to summary |
|---|---|
| public void removeResourceEnvRef(String name) Remove any resource environment reference with the specified name.
| |
| removeResourceLink | back to summary |
|---|---|
| public void removeResourceLink(String name) Implements org. Remove any resource link with the specified name. | |
| removeService | back to summary |
|---|---|
| public void removeService(String name) Remove any web service reference with the specified name.
| |
| setContainer | back to summary |
|---|---|
| public void setContainer(Object container) Set the container with which the naming resources are associated.
| |
| setTransaction | back to summary |
|---|---|
| public void setTransaction(ContextTransaction transaction) Set the transaction object.
| |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Implements abstract org. Doc from org. Sub-classes must ensure that the state is changed to
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Implements abstract org. Doc from org. Sub-classes must ensure that the state is changed to
| |