org.apache.tomcat.util.modeler
public class ManagedBean extends Object implements Serializable
Internal configuration information for a managed bean (MBean) descriptor.
Version: $Revision: 610929 $ $Date: 2008-01-10 22:04:31 +0100 (Thu, 10 Jan 2008) $
Field Summary | |
---|---|
protected String | className |
protected String | description |
protected String | domain |
protected String | group |
protected String | name |
protected NotificationInfo[] | notifications |
protected String | type |
Constructor Summary | |
---|---|
ManagedBean() Constructor. |
Method Summary | |
---|---|
void | addAttribute(AttributeInfo attribute)
Add a new attribute to the set of attributes for this MBean.
|
void | addNotification(NotificationInfo notification)
Add a new notification to the set of notifications for this MBean.
|
void | addOperation(OperationInfo operation)
Add a new operation to the set of operations for this MBean.
|
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. |
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. |
AttributeInfo[] | getAttributes()
The collection of attributes for this MBean. |
String | getClassName()
The fully qualified name of the Java class of the MBean
described by this descriptor. |
String | getDescription()
The human-readable description of this MBean. |
String | getDomain()
The (optional) ObjectName domain in which this MBean
should be registered in the MBeanServer. |
String | getGroup()
The (optional) group to which this MBean belongs. |
Method | getInvoke(String aname, Object[] params, String[] signature, BaseModelMBean bean, Object resource) |
String | getName()
The name of this managed bean, which must be unique among all
MBeans managed by a particular MBeans server. |
NotificationInfo[] | getNotifications()
The collection of notifications for this MBean. |
OperationInfo[] | getOperations()
The collection of operations for this MBean. |
Method | getSetter(String aname, BaseModelMBean bean, Object resource) |
String | getType()
The fully qualified name of the Java class of the resource
implementation class described by the managed bean described
by this descriptor. |
void | setClassName(String className) |
void | setDescription(String description) |
void | setDomain(String domain) |
void | setGroup(String group) |
void | setName(String name) |
void | setType(String type) |
String | toString()
Return a string representation of this managed bean. |
Parameters: attribute The new attribute descriptor
Parameters: notification The new notification descriptor
Parameters: operation The new operation descriptor
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
.
Throws: InstanceNotFoundException if the managed resource
object cannot be found InvalidTargetObjectTypeException if our MBean cannot
handle object references (should never happen) MBeanException if a problem occurs instantiating the
ModelMBean
instance RuntimeOperationsException if a JMX runtime error occurs
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
Throws: InstanceNotFoundException if the managed resource
object cannot be found InvalidTargetObjectTypeException if our MBean cannot
handle object references (should never happen) MBeanException if a problem occurs instantiating the
ModelMBean
instance RuntimeOperationsException if a JMX runtime error occurs
javax.management.modelmbean.RequiredModeLMBean
)
will be utilized.ObjectName
domain in which this MBean
should be registered in the MBeanServer.