| java.lang.Object org.mortbay.management.ObjectMBean
All known Subclasses: org.mortbay.jetty.management.ServerMBean, org.mortbay.jetty.servlet.management.ServletHolderMBean,
ObjectMBean | public class ObjectMBean implements DynamicMBean(Code) | | ObjectMBean.
A dynamic MBean that can wrap an arbitary Object instance.
the attributes and methods exposed by this bean are controlled by
the merge of property bundles discovered by names related to all
superclasses and all superinterfaces.
Attributes and methods exported may be "Object" and must exist on the
wrapped object, or "MBean" and must exist on a subclass of OBjectMBean
or "MObject" which exists on the wrapped object, but whose values are
converted to MBean object names.
|
defineAttribute | public MBeanAttributeInfo defineAttribute(String name, String metaData)(Code) | | Define an attribute on the managed object. The meta data is defined by looking for standard
getter and setter methods. Descriptions are obtained with a call to findDescription with the
attribute name.
Parameters: name - Parameters: metaData - "description" or "access:description" or "type:access:description" where type isthe "Object","MBean" or "MObject" to indicate the method is on the object, the MBean or on the object but converted to an MBean, accessis either "RW" or "RO". |
mbeanFor | public static Object mbeanFor(Object o)(Code) | | Create MBean for Object. Attempts to create an MBean for the object by searching the package
and class name space. For example an object of the type
class com.acme.MyClass extends com.acme.util.BaseClass implements com.acme.Iface
Then this method would look for the following classes:
- com.acme.management.MyClassMBean
- com.acme.util.management.BaseClassMBean
- org.mortbay.management.ObjectMBean
Parameters: o - The object A new instance of an MBean for the object or null. |
|
|