Package org.apache.catalina.mbeans
Class BaseCatalinaMBean<T>
- java.lang.Object
-
- org.apache.tomcat.util.modeler.BaseModelMBean
-
- org.apache.catalina.mbeans.BaseCatalinaMBean<T>
-
- Type Parameters:
T- the type of the managed resource
- All Implemented Interfaces:
javax.management.DynamicMBean,javax.management.MBeanRegistration,javax.management.modelmbean.ModelMBeanNotificationBroadcaster,javax.management.NotificationBroadcaster
- Direct Known Subclasses:
ClassNameMBean,ContainerMBean,ContextEnvironmentMBean,ContextMBean,ContextResourceLinkMBean,ContextResourceMBean,ServiceMBean
public abstract class BaseCatalinaMBean<T> extends BaseModelMBean
Abstract base class for Catalina MBeans that provides typed access to the managed resource.
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
-
-
Constructor Summary
Constructors Constructor Description BaseCatalinaMBean()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TdoGetManagedResource()Returns the managed resource associated with this MBean.protected static java.lang.ObjectnewInstance(java.lang.String type)Creates a new instance of the specified class.-
Methods inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
-
-
-
-
Method Detail
-
doGetManagedResource
protected T doGetManagedResource() throws javax.management.MBeanException
Returns the managed resource associated with this MBean.- Returns:
- the managed resource
- Throws:
javax.management.MBeanException- if the resource cannot be retrieved
-
newInstance
protected static java.lang.Object newInstance(java.lang.String type) throws javax.management.MBeanExceptionCreates a new instance of the specified class.- Parameters:
type- the fully qualified class name- Returns:
- the new instance
- Throws:
javax.management.MBeanException- if the instance cannot be created
-
-