|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.modeler.BaseModelMBean org.apache.catalina.mbeans.NamingResourcesMBean
public class NamingResourcesMBean
A ModelMBean implementation for the
org.apache.catalina.deploy.NamingResources
component.
Field Summary | |
---|---|
protected ManagedBean |
managed
The ManagedBean information describing this MBean. |
protected Registry |
registry
The configuration information registry for our managed beans. |
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean |
---|
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType |
Constructor Summary | |
---|---|
NamingResourcesMBean()
Construct a ModelMBean with default
ModelMBeanInfo information. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Registry registry
protected ManagedBean managed
ManagedBean
information describing this MBean.
Constructor Detail |
---|
public NamingResourcesMBean() throws MBeanException, RuntimeOperationsException
ModelMBean
with default
ModelMBeanInfo
information.
MBeanException
- if the initializer of an object
throws an exception
RuntimeOperationsException
- if an IllegalArgumentException
occursMethod Detail |
---|
public String[] getEnvironments()
public String[] getResources()
public String[] getResourceLinks()
public String addEnvironment(String envName, String type, String value) throws MalformedObjectNameException
envName
- New environment entry nametype
- The type of the new environment entryvalue
- The value of the new environment entry
MalformedObjectNameException
public String addResource(String resourceName, String type) throws MalformedObjectNameException
resourceName
- New resource reference nametype
- New resource reference type
MalformedObjectNameException
public String addResourceLink(String resourceLinkName, String type) throws MalformedObjectNameException
resourceLinkName
- New resource link reference nametype
- New resource link reference type
MalformedObjectNameException
public void removeEnvironment(String envName)
envName
- Name of the environment entry to removepublic void removeResource(String resourceName)
resourceName
- Name of the resource reference to removepublic void removeResourceLink(String resourceLinkName)
resourceLinkName
- Name of the resource link reference to remove
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |