Class BaseNamingResourceMBean<T>
java.lang.Object
org.apache.tomcat.util.modeler.BaseModelMBean
org.apache.catalina.mbeans.BaseCatalinaMBean<T>
org.apache.catalina.mbeans.BaseNamingResourceMBean<T>
- Type Parameters:
T- the type of the managed resource
- All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster
- Direct Known Subclasses:
ContextEnvironmentMBean, ContextResourceLinkMBean, ContextResourceMBean
Abstract base class for Naming Resource MBeans.
-
Field Summary
Fields inherited from class BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract LoggetLog()Enables sub-classes to provide the correct logger for any log messages.protected booleanvalidateAttribute(Attribute attribute) Validate the provided attribute.Methods inherited from class BaseCatalinaMBean
doGetManagedResource, newInstanceMethods 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
-
BaseNamingResourceMBean
public BaseNamingResourceMBean()Creates a naming resource MBean.
-
-
Method Details
-
validateAttribute
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:
trueif the attribute is valid,falseif the caller should stop further processing.
-
getLog
Enables sub-classes to provide the correct logger for any log messages.- Returns:
- The logger to use
-