org.apache.catalina.mbeans
public class DefaultContextMBean extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.core.StandardDefaultContext component.
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
| Field Summary | |
|---|---|
| protected ManagedBean | managed
The ManagedBean information describing this MBean. |
| protected Registry | registry
The configuration information registry for our managed beans. |
| Constructor Summary | |
|---|---|
| DefaultContextMBean()
Construct a ModelMBean with default
ModelMBeanInfo information.
| |
| Method Summary | |
|---|---|
| String | addEnvironment(String envName, String type)
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 global, String name, String type)
Add a resource link 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 links 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 with the specified name.
|
ManagedBean information describing this MBean.ModelMBean with default
ModelMBeanInfo information.
Throws: MBeanException if the initializer of an object throws an exception RuntimeOperationsException if an IllegalArgumentException occurs
Parameters: envName New environment entry name
Parameters: resourceName New resource reference name
Parameters: resourceLinkName New resource link name
Parameters: envName Name of the environment entry to remove
Parameters: resourceName Name of the resource reference to remove
Parameters: resourceLinkName Name of the resource reference to remove