Class BaseModelMBean

java.lang.Object
org.apache.tomcat.util.modeler.BaseModelMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster
Direct Known Subclasses:
BaseCatalinaMBean, DataSourceUserDatabaseMBean, GroupMBean, NamingResourcesMBean, RequestGroupInfo, RoleMBean, SparseUserDatabaseMBean, UpgradeGroupInfo, UserMBean

public class BaseModelMBean extends Object implements DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster

Basic implementation of the DynamicMBean interface, which supports the minimal requirements of the interface contract.

This can be used directly to wrap an existing java bean, or inside an mlet or anywhere an MBean would be used. Limitations:

  • Only managed resources of type objectReference are supported.
  • Caching of attribute values and operation results is not supported. All calls to invoke() are immediately executed.
  • Persistence of MBean attributes and operations is not supported.
  • All classes referenced as attribute types, operation parameters, or operation return values must be one of the following:
    • One of the Java primitive types (boolean, byte, char, double, float, integer, long, short). Corresponding value will be wrapped in the appropriate wrapper class automatically.
    • Operations that return no value should declare a return type of void.
  • Attribute caching is not supported
Author:
Craig R. McClanahan, Costin Manolache