Class BaseNamingResourceMBean<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:
    ContextEnvironmentMBean, ContextResourceLinkMBean, ContextResourceMBean

    public abstract class BaseNamingResourceMBean<T>
    extends BaseCatalinaMBean<T>
    Abstract base class for Naming Resource MBeans.
    • Constructor Detail

      • BaseNamingResourceMBean

        public BaseNamingResourceMBean()
        Creates a naming resource MBean.
    • Method Detail

      • validateAttribute

        protected boolean validateAttribute​(javax.management.Attribute attribute)
        Validate the provided attribute. Checks include:
        • attribute is not null
        • attribute name is not null
        • attribute name is not "name"
        Parameters:
        attribute - The attribute to validate
        Returns:
        true if the attribute is valid, false if the caller should stop further processing.
      • getLog

        protected abstract Log getLog()
        Enables sub-classes to provide the correct logger for any log messages.
        Returns:
        The logger to use