org.apache.catalina.mbeans
Class NamingResourcesMBean
BaseModelMBean
org.apache.catalina.mbeans.NamingResourcesMBean
public class NamingResourcesMBean
extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.deploy.NamingResources
component.
Version:
- Amy Roh
protected ManagedBean | managed - The
ManagedBean information describing this MBean.
|
protected Registry | registry - The configuration information registry for our managed beans.
|
String | addEnvironment(String envName, String type, String value) - Add an environment entry for this web application.
|
String | addResource(String resourceName, String type) - Add a resource reference for this web application.
|
String | addResourceLink(String resourceLinkName, String type) - Add a resource link reference for this web application.
|
String[] | getEnvironments() - Return the MBean Names of the set of defined environment entries for
this web application
|
String[] | getResourceLinks() - Return the MBean Names of all the defined resource link references for
this application.
|
String[] | getResources() - Return the MBean Names of all the defined resource references for this
application.
|
void | removeEnvironment(String envName) - Remove any environment entry with the specified name.
|
void | removeResource(String resourceName) - Remove any resource reference with the specified name.
|
void | removeResourceLink(String resourceLinkName) - Remove any resource link reference with the specified name.
|
managed
protected ManagedBean managed
The ManagedBean
information describing this MBean.
registry
protected Registry registry
The configuration information registry for our managed beans.
NamingResourcesMBean
public NamingResourcesMBean()
throws MBeanException,
RuntimeOperationsException
Construct a ModelMBean
with default
ModelMBeanInfo
information.
addEnvironment
public String addEnvironment(String envName,
String type,
String value)
throws MalformedObjectNameException
Add an environment entry for this web application.
envName
- New environment entry nametype
- The type of the new environment entryvalue
- The value of the new environment entry
addResource
public String addResource(String resourceName,
String type)
throws MalformedObjectNameException
Add a resource reference for this web application.
resourceName
- New resource reference nametype
- New resource reference type
addResourceLink
public String addResourceLink(String resourceLinkName,
String type)
throws MalformedObjectNameException
Add a resource link reference for this web application.
resourceLinkName
- New resource link reference nametype
- New resource link reference type
getEnvironments
public String[] getEnvironments()
Return the MBean Names of the set of defined environment entries for
this web application
getResourceLinks
public String[] getResourceLinks()
Return the MBean Names of all the defined resource link references for
this application.
getResources
public String[] getResources()
Return the MBean Names of all the defined resource references for this
application.
removeEnvironment
public void removeEnvironment(String envName)
Remove any environment entry with the specified name.
removeResource
public void removeResource(String resourceName)
Remove any resource reference with the specified name.
resourceName
- Name of the resource reference to remove
removeResourceLink
public void removeResourceLink(String resourceLinkName)
Remove any resource link reference with the specified name.
resourceLinkName
- Name of the resource link reference to remove
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.