Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » modeler » [javadoc | source]
org.apache.tomcat.util.modeler
public class: ManagedBean [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.modeler.ManagedBean

All Implemented Interfaces:
    Serializable

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

Field Summary
static final  Object[] NO_ARGS_PARAM     
static final  Class[] NO_ARGS_PARAM_SIG     
transient  MBeanInfo info    The ModelMBeanInfo object that corresponds to this ManagedBean instance. 
protected  String className     
protected  String description     
protected  String domain     
protected  String group     
protected  String name     
protected  NotificationInfo[] notifications     
protected  String type     
Constructor:
 public ManagedBean() 
Method from org.apache.tomcat.util.modeler.ManagedBean Summary:
addAttribute,   addNotification,   addOperation,   createMBean,   createMBean,   getAttributes,   getClassName,   getDescription,   getDomain,   getGetter,   getGroup,   getInvoke,   getMBeanInfo,   getName,   getNotifications,   getOperations,   getSetter,   getType,   setClassName,   setDescription,   setDomain,   setGroup,   setName,   setType,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.modeler.ManagedBean Detail:
 public  void addAttribute(AttributeInfo attribute) 
    Add a new attribute to the set of attributes for this MBean.
 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 DynamicMBean createMBean() throws InstanceNotFoundException, MBeanException, RuntimeOperationsException 
    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 DynamicMBean createMBean(Object instance) throws InstanceNotFoundException, MBeanException, RuntimeOperationsException 
    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 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 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.
 Method getGetter(String aname,
    BaseModelMBean mbean,
    Object resource) throws AttributeNotFoundException, MBeanException, ReflectionException 
 public String getGroup() 
    The (optional) group to which this MBean belongs.
 public Method getInvoke(String aname,
    Object[] params,
    String[] signature,
    BaseModelMBean bean,
    Object resource) throws MBeanException, ReflectionException 
 MBeanInfo getMBeanInfo() 
    Create and return a ModelMBeanInfo object that describes this entire managed bean.
 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 Method getSetter(String aname,
    BaseModelMBean bean,
    Object resource) throws AttributeNotFoundException, MBeanException, ReflectionException 
 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.