org.apache.catalina.mbeans
public class StandardContextMBean extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.core.StandardContext component.
| Modifier and Type | Field and Description |
|---|---|
protected ManagedBean |
managed
The
ManagedBean information describing this MBean. |
protected Registry |
registry
The configuration information registry for our managed beans.
|
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType| Constructor and Description |
|---|
StandardContextMBean()
Construct a
ModelMBean with default
ModelMBeanInfo information. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addEnvironment(java.lang.String envName,
java.lang.String type)
Add an environment entry for this web application.
|
java.lang.String |
addResource(java.lang.String resourceName,
java.lang.String type)
Add a resource reference for this web application.
|
java.lang.String |
addResourceLink(java.lang.String resourceLinkName,
java.lang.String global,
java.lang.String name,
java.lang.String type)
Add a resource link for this web application.
|
java.lang.String[] |
getEnvironments()
Return the MBean Names of the set of defined environment entries for
this web application
|
java.lang.String[] |
getResourceLinks()
Return the MBean Names of all the defined resource links for this
application
|
java.lang.String[] |
getResources()
Return the MBean Names of all the defined resource references for this
application.
|
javax.naming.directory.DirContext |
getStaticResources()
Return the naming resources associated with this web application.
|
java.lang.String[] |
getWelcomeFiles()
Return the naming resources associated with this web application.
|
void |
reload()
Return the naming resources associated with this web application.
|
void |
removeEnvironment(java.lang.String envName)
Remove any environment entry with the specified name.
|
void |
removeResource(java.lang.String resourceName)
Remove any resource reference with the specified name.
|
void |
removeResourceLink(java.lang.String resourceLinkName)
Remove any resource link with the specified name.
|
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toStringprotected Registry registry
protected ManagedBean managed
ManagedBean information describing this MBean.public StandardContextMBean()
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
ModelMBean with default
ModelMBeanInfo information.javax.management.MBeanException - if the initializer of an object
throws an exceptionjavax.management.RuntimeOperationsException - if an IllegalArgumentException
occurspublic void reload()
public java.lang.String[] getEnvironments()
public java.lang.String[] getResources()
public java.lang.String[] getResourceLinks()
public javax.naming.directory.DirContext getStaticResources()
public java.lang.String[] getWelcomeFiles()
public java.lang.String addEnvironment(java.lang.String envName,
java.lang.String type)
throws javax.management.MalformedObjectNameException
envName - New environment entry namejavax.management.MalformedObjectNameExceptionpublic java.lang.String addResource(java.lang.String resourceName,
java.lang.String type)
throws javax.management.MalformedObjectNameException
resourceName - New resource reference namejavax.management.MalformedObjectNameExceptionpublic java.lang.String addResourceLink(java.lang.String resourceLinkName,
java.lang.String global,
java.lang.String name,
java.lang.String type)
throws javax.management.MalformedObjectNameException
resourceLinkName - New resource link namejavax.management.MalformedObjectNameExceptionpublic void removeEnvironment(java.lang.String envName)
envName - Name of the environment entry to removepublic void removeResource(java.lang.String resourceName)
resourceName - Name of the resource reference to removepublic void removeResourceLink(java.lang.String resourceLinkName)
resourceLinkName - Name of the resource reference to removeCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.