org.apache.catalina.mbeans

Class NamingResourcesMBean

public class NamingResourcesMBean extends BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.deploy.NamingResources component.

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Amy Roh

Field Summary
protected ManagedBeanmanaged
The ManagedBean information describing this MBean.
protected Registryregistry
The configuration information registry for our managed beans.
Constructor Summary
NamingResourcesMBean()
Construct a ModelMBean with default ModelMBeanInfo information.
Method Summary
StringaddEnvironment(String envName, String type, String value)
Add an environment entry for this web application.
StringaddResource(String resourceName, String type)
Add a resource reference for this web application.
StringaddResourceLink(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.
voidremoveEnvironment(String envName)
Remove any environment entry with the specified name.
voidremoveResource(String resourceName)
Remove any resource reference with the specified name.
voidremoveResourceLink(String resourceLinkName)
Remove any resource link reference with the specified name.

Field Detail

managed

protected ManagedBean managed
The ManagedBean information describing this MBean.

registry

protected Registry registry
The configuration information registry for our managed beans.

Constructor Detail

NamingResourcesMBean

public NamingResourcesMBean()
Construct a ModelMBean with default ModelMBeanInfo information.

Throws: MBeanException if the initializer of an object throws an exception RuntimeOperationsException if an IllegalArgumentException occurs

Method Detail

addEnvironment

public String addEnvironment(String envName, String type, String value)
Add an environment entry for this web application.

Parameters: envName New environment entry name type The type of the new environment entry value The value of the new environment entry

addResource

public String addResource(String resourceName, String type)
Add a resource reference for this web application.

Parameters: resourceName New resource reference name type New resource reference type

addResourceLink

public String addResourceLink(String resourceLinkName, String type)
Add a resource link reference for this web application.

Parameters: resourceLinkName New resource link reference name type 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.

Parameters: envName Name of the environment entry to remove

removeResource

public void removeResource(String resourceName)
Remove any resource reference with the specified name.

Parameters: resourceName Name of the resource reference to remove

removeResourceLink

public void removeResourceLink(String resourceLinkName)
Remove any resource link reference with the specified name.

Parameters: resourceLinkName Name of the resource link reference to remove

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.