Package org.apache.catalina.mbeans
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:
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.
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
-
-
Constructor Summary
Constructors Constructor Description BaseNamingResourceMBean()Creates a naming resource MBean.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract LoggetLog()Enables sub-classes to provide the correct logger for any log messages.protected booleanvalidateAttribute(javax.management.Attribute attribute)Validate the provided attribute.-
Methods inherited from class org.apache.catalina.mbeans.BaseCatalinaMBean
doGetManagedResource, newInstance
-
Methods inherited from class org.apache.tomcat.util.modeler.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
-
-
-
-
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:
trueif the attribute is valid,falseif 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
-
-