Class BaseNamingResourceMBean<T>

Type Parameters:
T - the type of the managed resource
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster
Direct Known Subclasses:
ContextEnvironmentMBean, ContextResourceLinkMBean, ContextResourceMBean

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

    • BaseNamingResourceMBean

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

    • validateAttribute

      protected boolean validateAttribute(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