| java.lang.Object org.apache.tomcat.util.modeler.ManagedBean
ManagedBean | public class ManagedBean implements java.io.Serializable(Code) | | Internal configuration information for a managed bean (MBean)
descriptor.
author: Craig R. McClanahan version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
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() 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. | public DynamicMBean | createMBean(Object instance) 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. | 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. | 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) | public String | getGroup() The (optional) group to which this MBean belongs. | public Method | getInvoke(String aname, Object[] params, String[] signature, BaseModelMBean bean, Object resource) | 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) | 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. |
NO_ARGS_PARAM_SIG | final static Class[] NO_ARGS_PARAM_SIG(Code) | | |
info | transient MBeanInfo info(Code) | | The ModelMBeanInfo object that corresponds
to this ManagedBean instance.
|
ManagedBean | public ManagedBean()(Code) | | Constructor. Will add default attributes.
|
addAttribute | public void addAttribute(AttributeInfo attribute)(Code) | | Add a new attribute to the set of attributes for this MBean.
Parameters: attribute - The new attribute descriptor |
addNotification | public void addNotification(NotificationInfo notification)(Code) | | Add a new notification to the set of notifications for this MBean.
Parameters: notification - The new notification descriptor |
addOperation | public void addOperation(OperationInfo operation)(Code) | | Add a new operation to the set of operations for this MBean.
Parameters: operation - The new operation descriptor |
createMBean | public DynamicMBean createMBean(Object instance) throws InstanceNotFoundException, MBeanException, RuntimeOperationsException(Code) | | 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 .
Parameters: instance - Instanced of the managed object, or null for no associated instance exception: InstanceNotFoundException - if the managed resourceobject cannot be found exception: InvalidTargetObjectTypeException - if our MBean cannothandle object references (should never happen) exception: MBeanException - if a problem occurs instantiating theModelMBean instance exception: RuntimeOperationsException - if a JMX runtime error occurs |
getAttributes | public AttributeInfo[] getAttributes()(Code) | | The collection of attributes for this MBean.
|
getClassName | public String getClassName()(Code) | | 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.
|
getDescription | public String getDescription()(Code) | | The human-readable description of this MBean.
|
getDomain | public String getDomain()(Code) | | The (optional) ObjectName domain in which this MBean
should be registered in the MBeanServer.
|
getGroup | public String getGroup()(Code) | | The (optional) group to which this MBean belongs.
|
getMBeanInfo | MBeanInfo getMBeanInfo()(Code) | | Create and return a ModelMBeanInfo object that
describes this entire managed bean.
|
getName | public String getName()(Code) | | The name of this managed bean, which must be unique among all
MBeans managed by a particular MBeans server.
|
getNotifications | public NotificationInfo[] getNotifications()(Code) | | The collection of notifications for this MBean.
|
getOperations | public OperationInfo[] getOperations()(Code) | | The collection of operations for this MBean.
|
getType | public String getType()(Code) | | The fully qualified name of the Java class of the resource
implementation class described by the managed bean described
by this descriptor.
|
setClassName | public void setClassName(String className)(Code) | | |
setDescription | public void setDescription(String description)(Code) | | |
toString | public String toString()(Code) | | Return a string representation of this managed bean.
|
|
|