Class 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:
    BaseNamingResourceMBean, ClassNameMBean, ContainerMBean, ContextMBean, ServiceMBean

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

      • BaseCatalinaMBean

        public BaseCatalinaMBean()
        Default constructor.
    • 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.MBeanException
        Creates 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