Save This Page
Home » commons-modeler-2.0.1-src » org.apache.commons » modeler » [javadoc | source]
org.apache.commons.modeler
public class: ManagedBean [javadoc | source]
java.lang.Object
   org.apache.commons.modeler.ManagedBean

All Implemented Interfaces:
    Serializable

Internal configuration information for a managed bean (MBean) descriptor.

Field Summary
transient  ModelMBeanInfo info    The ModelMBeanInfo object that corresponds to this ManagedBean instance. 
protected  AttributeInfo[] attributes     
protected  String className     
protected  ConstructorInfo[] constructors     
protected  String description     
protected  String domain     
protected  String group     
protected  String name     
protected  List fields     
protected  NotificationInfo[] notifications     
protected  OperationInfo[] operations     
protected  String type     
Constructor:
 public ManagedBean() 
Method from org.apache.commons.modeler.ManagedBean Summary:
addAttribute,   addConstructor,   addField,   addNotification,   addOperation,   createMBean,   createMBean,   createMBeanInfo,   getAttributes,   getClassName,   getConstructors,   getDescription,   getDomain,   getFields,   getGroup,   getName,   getNotifications,   getOperations,   getType,   setClassName,   setDescription,   setDomain,   setGroup,   setName,   setType,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.modeler.ManagedBean Detail:
 public  void addAttribute(AttributeInfo attribute) 
    Add a new attribute to the set of attributes for this MBean.
 public  void addConstructor(ConstructorInfo constructor) 
    Add a new constructor to the set of constructors for this MBean.
 public  void addField(FieldInfo field) 

    Add a new field to the fields associated with the Descriptor that will be created from this metadata.

 public  void addNotification(NotificationInfo notification) 
    Add a new notification to the set of notifications for this MBean.
 public  void addOperation(OperationInfo operation) 
    Add a new operation to the set of operations for this MBean.
 public ModelMBean createMBean() throws InstanceNotFoundException, InvalidTargetObjectTypeException, RuntimeOperationsException, MBeanException 
    Create and return a ModelMBean that has been preconfigured with the ModelMBeanInfo information for this managed bean, but is not associated with any particular managed resource. The returned ModelMBean will NOT have been registered with our MBeanServer.
 public ModelMBean createMBean(Object instance) throws InstanceNotFoundException, InvalidTargetObjectTypeException, RuntimeOperationsException, MBeanException 
    Create and return a ModelMBean that has been preconfigured with the ModelMBeanInfo information for this managed bean, and is associated with the specified managed object instance. The returned ModelMBean will NOT have been registered with our MBeanServer.
 public ModelMBeanInfo createMBeanInfo() 
    Create and return a ModelMBeanInfo object that describes this entire managed bean.
 public AttributeInfo[] getAttributes() 
    The collection of attributes for this MBean.
 public String getClassName() 
    The fully qualified name of the Java class of the MBean described by this descriptor. If not specified, the standard JMX class (javax.management.modelmbean.RequiredModeLMBean) will be utilized.
 public ConstructorInfo[] getConstructors() 
    The collection of constructors for this MBean.
 public String getDescription() 
    The human-readable description of this MBean.
 public String getDomain() 
    The (optional) ObjectName domain in which this MBean should be registered in the MBeanServer.
 public List getFields() 

    Return a List of the FieldInfo objects for the name/value pairs that should be added to the Descriptor created from this metadata.

 public String getGroup() 
    The (optional) group to which this MBean belongs.
 public String getName() 
    The name of this managed bean, which must be unique among all MBeans managed by a particular MBeans server.
 public NotificationInfo[] getNotifications() 
    The collection of notifications for this MBean.
 public OperationInfo[] getOperations() 
    The collection of operations for this MBean.
 public String getType() 
    The fully qualified name of the Java class of the resource implementation class described by the managed bean described by this descriptor.
 public  void setClassName(String className) 
 public  void setDescription(String description) 
 public  void setDomain(String domain) 
 public  void setGroup(String group) 
 public  void setName(String name) 
 public  void setType(String type) 
 public String toString() 
    Return a string representation of this managed bean.