public class NamingResources extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected PropertyChangeSupport |
support
The property change support for this component.
|
Constructor and Description |
---|
NamingResources()
Create a new NamingResources instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addEjb(ContextEjb ejb)
Add an EJB resource reference for this web application.
|
void |
addEnvironment(ContextEnvironment environment)
Add an environment entry for this web application.
|
void |
addLocalEjb(ContextLocalEjb ejb)
Add a local EJB resource reference for this web application.
|
void |
addMessageDestinationRef(MessageDestinationRef mdr)
Add a message destination reference for this web application.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this component.
|
void |
addResource(ContextResource resource)
Add a resource reference for this web application.
|
void |
addResourceEnvRef(String name,
String type)
Add a resource environment reference for this web application.
|
void |
addResourceLink(ContextResourceLink resourceLink)
Add a resource link for this web application.
|
void |
addResourceParams(ResourceParams resourceParameters)
Add resource parameters for this web application.
|
boolean |
exists(String name)
Return true if the name specified already exists.
|
ContextEjb |
findEjb(String name)
Return the EJB resource reference with the specified name, if any;
otherwise, return
null . |
ContextEjb[] |
findEjbs()
Return the defined EJB resource references for this application.
|
ContextEnvironment |
findEnvironment(String name)
Return the environment entry with the specified name, if any;
otherwise, return
null . |
ContextEnvironment[] |
findEnvironments()
Return the set of defined environment entries for this web
application.
|
ContextLocalEjb |
findLocalEjb(String name)
Return the local EJB resource reference with the specified name, if any;
otherwise, return
null . |
ContextLocalEjb[] |
findLocalEjbs()
Return the defined local EJB resource references for this application.
|
MessageDestinationRef |
findMessageDestinationRef(String name)
Return the message destination reference with the specified name,
if any; otherwise, return
null . |
MessageDestinationRef[] |
findMessageDestinationRefs()
Return the defined message destination references for this application.
|
ContextResource |
findResource(String name)
Return the resource reference with the specified name, if any;
otherwise return
null . |
String |
findResourceEnvRef(String name)
Return the resource environment reference type for the specified
name, if any; otherwise return
null . |
String[] |
findResourceEnvRefs()
Return the set of resource environment reference names for this
web application.
|
ContextResourceLink |
findResourceLink(String name)
Return the resource link with the specified name, if any;
otherwise return
null . |
ContextResourceLink[] |
findResourceLinks()
Return the defined resource links for this application.
|
ResourceParams[] |
findResourceParams()
Return the resource parameters with the specified name, if any;
otherwise return
null . |
ResourceParams |
findResourceParams(String name)
Return the resource parameters with the specified name, if any;
otherwise return
null . |
ContextResource[] |
findResources()
Return the defined resource references for this application.
|
Object |
getContainer()
Get the container with which the naming resources are associated.
|
void |
removeEjb(String name)
Remove any EJB resource reference with the specified name.
|
void |
removeEnvironment(String name)
Remove any environment entry with the specified name.
|
void |
removeLocalEjb(String name)
Remove any local EJB resource reference with the specified name.
|
void |
removeMessageDestinationRef(String name)
Remove any message destination reference with the specified name.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener from this component.
|
void |
removeResource(String name)
Remove any resource reference with the specified name.
|
void |
removeResourceEnvRef(String name)
Remove any resource environment reference with the specified name.
|
void |
removeResourceLink(String name)
Remove any resource link with the specified name.
|
void |
removeResourceParams(String name)
Remove any resource parameters with the specified name.
|
void |
setContainer(Object container)
Set the container with which the naming resources are associated.
|
protected PropertyChangeSupport support
public Object getContainer()
public void setContainer(Object container)
public void addEjb(ContextEjb ejb)
ejb
- New EJB resource referencepublic void addEnvironment(ContextEnvironment environment)
environment
- New environment entrypublic void addResourceParams(ResourceParams resourceParameters)
resourceParameters
- New resource parameterspublic void addLocalEjb(ContextLocalEjb ejb)
ejb
- New EJB resource referencepublic void addMessageDestinationRef(MessageDestinationRef mdr)
mdr
- New message destination referencepublic void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to addpublic void addResource(ContextResource resource)
resource
- New resource referencepublic void addResourceEnvRef(String name, String type)
name
- The resource environment reference nametype
- The resource environment reference typepublic void addResourceLink(ContextResourceLink resourceLink)
resource
- New resource linkpublic ContextEjb findEjb(String name)
null
.name
- Name of the desired EJB resource referencepublic ContextEjb[] findEjbs()
public ContextEnvironment findEnvironment(String name)
null
.name
- Name of the desired environment entrypublic ContextEnvironment[] findEnvironments()
public ContextLocalEjb findLocalEjb(String name)
null
.name
- Name of the desired EJB resource referencepublic ContextLocalEjb[] findLocalEjbs()
public MessageDestinationRef findMessageDestinationRef(String name)
null
.name
- Name of the desired message destination referencepublic MessageDestinationRef[] findMessageDestinationRefs()
public ContextResource findResource(String name)
null
.name
- Name of the desired resource referencepublic ContextResourceLink findResourceLink(String name)
null
.name
- Name of the desired resource linkpublic ContextResourceLink[] findResourceLinks()
public ContextResource[] findResources()
public String findResourceEnvRef(String name)
null
.name
- Name of the desired resource environment referencepublic String[] findResourceEnvRefs()
public ResourceParams findResourceParams(String name)
null
.name
- Name of the desired resource parameterspublic ResourceParams[] findResourceParams()
null
.name
- Name of the desired resource parameterspublic boolean exists(String name)
public void removeEjb(String name)
name
- Name of the EJB resource reference to removepublic void removeEnvironment(String name)
name
- Name of the environment entry to removepublic void removeLocalEjb(String name)
name
- Name of the EJB resource reference to removepublic void removeMessageDestinationRef(String name)
name
- Name of the message destination resource reference to removepublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to removepublic void removeResource(String name)
name
- Name of the resource reference to removepublic void removeResourceEnvRef(String name)
name
- Name of the resource environment reference to removepublic void removeResourceLink(String name)
name
- Name of the resource link to removepublic void removeResourceParams(String name)
name
- Name of the resource parameters to removeCopyright © 2020. All rights reserved.