Class ClassNameMBean

  extended byorg.apache.commons.modeler.BaseModelMBean
      extended byorg.apache.catalina.mbeans.ClassNameMBean
All Implemented Interfaces:,,,,,
Direct Known Subclasses:

public class ClassNameMBean
extends org.apache.commons.modeler.BaseModelMBean

A convenience base class for ModelMBean implementations where the underlying base class (and therefore the set of supported properties) is different for varying implementations of a standard interface. For Catalina, that includes at least the following: Connector, Logger, Realm, and Valve. This class creates an artificial MBean attribute named className, which reports the fully qualified class name of the managed object as its value.

$Id: 939527 2010-04-30 00:43:48Z kkolinko $
Craig R. McClanahan

Field Summary
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
Constructor Summary
          Construct a ModelMBean with default ModelMBeanInfo information.
Method Summary
 java.lang.String getClassName()
          Return the fully qualified Java class name of the managed object for this MBean.
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public ClassNameMBean()
Construct a ModelMBean with default ModelMBeanInfo information.

Throws: - if the initialize of an object throws an exception - if an IllegalArgumentException occurs
Method Detail


public java.lang.String getClassName()
Return the fully qualified Java class name of the managed object for this MBean.

Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.