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:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster
- Direct Known Subclasses:
ClassNameMBean, ContainerMBean, ContextEnvironmentMBean, ContextMBean, ContextResourceLinkMBean, ContextResourceMBean, ServiceMBean
Abstract base class for Catalina MBeans that provides typed access to the managed resource.
-
Field Summary
Fields inherited from class BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TReturns the managed resource associated with this MBean.protected static ObjectnewInstance(String type) Creates a new instance of the specified class.Methods inherited from class 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
-
Constructor Details
-
BaseCatalinaMBean
public BaseCatalinaMBean()Default constructor.
-
-
Method Details
-
doGetManagedResource
Returns the managed resource associated with this MBean.- Returns:
- the managed resource
- Throws:
MBeanException- if the resource cannot be retrieved
-
newInstance
Creates a new instance of the specified class.- Parameters:
type- the fully qualified class name- Returns:
- the new instance
- Throws:
MBeanException- if the instance cannot be created
-