Internal configuration information for a managed bean (MBean)
descriptor.
className
protected String className
description
protected String description
domain
protected String domain
fields
protected List fields
group
protected String group
info
(package private) ModelMBeanInfo info
The ModelMBeanInfo
object that corresponds
to this ManagedBean
instance.
name
protected String name
type
protected String type
addAttribute
public void addAttribute(AttributeInfo attribute)
Add a new attribute to the set of attributes for this MBean.
attribute
- The new attribute descriptor
addConstructor
public void addConstructor(ConstructorInfo constructor)
Add a new constructor to the set of constructors for this MBean.
constructor
- The new constructor descriptor
addField
public void addField(FieldInfo field)
Add a new field to the fields associated with the
Descriptor that will be created from this metadata.
field
- The field to be added
addNotification
public void addNotification(NotificationInfo notification)
Add a new notification to the set of notifications for this MBean.
notification
- The new notification descriptor
addOperation
public void addOperation(OperationInfo operation)
Add a new operation to the set of operations for this MBean.
operation
- The new operation descriptor
createMBean
public ModelMBean createMBean()
throws InstanceNotFoundException,
InvalidTargetObjectTypeException,
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
.
createMBean
public ModelMBean createMBean(Object instance)
throws InstanceNotFoundException,
InvalidTargetObjectTypeException,
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
.
instance
- Instanced of the managed object, or null
for no associated instance
createMBeanInfo
public ModelMBeanInfo createMBeanInfo()
Create and return a ModelMBeanInfo
object that
describes this entire managed bean.
getAttributes
public AttributeInfo[] getAttributes()
The collection of attributes for this MBean.
getClassName
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.
getConstructors
public ConstructorInfo[] getConstructors()
The collection of constructors for this MBean.
getDescription
public String getDescription()
The human-readable description of this MBean.
getDomain
public String getDomain()
The (optional) ObjectName
domain in which this MBean
should be registered in the MBeanServer.
getFields
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.
getGroup
public String getGroup()
The (optional) group to which this MBean belongs.
getName
public String getName()
The name of this managed bean, which must be unique among all
MBeans managed by a particular MBeans server.
getNotifications
public NotificationInfo[] getNotifications()
The collection of notifications for this MBean.
getOperations
public OperationInfo[] getOperations()
The collection of operations for this MBean.
getType
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.
setClassName
public void setClassName(String className)
setDescription
public void setDescription(String description)
setDomain
public void setDomain(String domain)
setGroup
public void setGroup(String group)
setName
public void setName(String name)
setType
public void setType(String type)
toString
public String toString()
Return a string representation of this managed bean.