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

public abstract class BaseCatalinaMBean<T> extends BaseModelMBean
Abstract base class for Catalina MBeans that provides typed access to the managed resource.
  • Constructor Details

    • BaseCatalinaMBean

      public BaseCatalinaMBean()
      Default constructor.
  • Method Details

    • doGetManagedResource

      protected T doGetManagedResource() throws MBeanException
      Returns the managed resource associated with this MBean.
      Returns:
      the managed resource
      Throws:
      MBeanException - if the resource cannot be retrieved
    • newInstance

      protected static Object newInstance(String type) throws MBeanException
      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