Package org.apache.catalina.mbeans
Class ContextResourceMBean
- java.lang.Object
-
- org.apache.tomcat.util.modeler.BaseModelMBean
-
- org.apache.catalina.mbeans.BaseCatalinaMBean<ContextResource>
-
- org.apache.catalina.mbeans.ContextResourceMBean
-
- All Implemented Interfaces:
DynamicMBean
,MBeanRegistration
,ModelMBeanNotificationBroadcaster
,NotificationBroadcaster
public class ContextResourceMBean extends BaseCatalinaMBean<ContextResource>
A ModelMBean implementation for the
org.apache.tomcat.util.descriptor.web.ContextResource
component.- Author:
- Amy Roh
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
-
-
Constructor Summary
Constructors Constructor Description ContextResourceMBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
Obtain and return the value of a specific attribute of this MBean.void
setAttribute(Attribute attribute)
Set the value of a specific attribute of this MBean.-
Methods inherited from class org.apache.catalina.mbeans.BaseCatalinaMBean
doGetManagedResource, newInstance
-
Methods inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttributes, setManagedBean, setManagedResource, toString
-
-
-
-
Method Detail
-
getAttribute
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException
Obtain and return the value of a specific attribute of this MBean.- Specified by:
getAttribute
in interfaceDynamicMBean
- Overrides:
getAttribute
in classBaseModelMBean
- Parameters:
name
- Name of the requested attribute- Throws:
AttributeNotFoundException
- if this attribute is not supported by this MBeanMBeanException
- if the initializer of an object throws an exceptionReflectionException
- if a Java reflection exception occurs when invoking the getter
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
Set the value of a specific attribute of this MBean.- Specified by:
setAttribute
in interfaceDynamicMBean
- Overrides:
setAttribute
in classBaseModelMBean
- Parameters:
attribute
- The identification of the attribute to be set and the new value- Throws:
AttributeNotFoundException
- if this attribute is not supported by this MBeanMBeanException
- if the initializer of an object throws an exceptionReflectionException
- if a Java reflection exception occurs when invoking the getter
-
-