|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.modeler.ManagedBean
public class ManagedBean
Internal configuration information for a managed bean (MBean) descriptor.
Field Summary | |
---|---|
protected AttributeInfo[] |
attributes
|
protected java.lang.String |
className
|
protected ConstructorInfo[] |
constructors
|
protected java.lang.String |
description
|
protected java.lang.String |
domain
|
protected java.util.List |
fields
|
protected java.lang.String |
group
|
protected java.lang.String |
name
|
protected NotificationInfo[] |
notifications
|
protected OperationInfo[] |
operations
|
protected java.lang.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 |
addConstructor(ConstructorInfo constructor)
Add a new constructor to the set of constructors for this MBean. |
void |
addField(FieldInfo field)
Add a new field to the fields associated with the Descriptor that will be created from this metadata. |
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. |
javax.management.modelmbean.ModelMBean |
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. |
javax.management.modelmbean.ModelMBean |
createMBean(java.lang.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. |
javax.management.modelmbean.ModelMBeanInfo |
createMBeanInfo()
Create and return a ModelMBeanInfo object that
describes this entire managed bean. |
AttributeInfo[] |
getAttributes()
The collection of attributes for this MBean. |
java.lang.String |
getClassName()
The fully qualified name of the Java class of the MBean described by this descriptor. |
ConstructorInfo[] |
getConstructors()
The collection of constructors for this MBean. |
java.lang.String |
getDescription()
The human-readable description of this MBean. |
java.lang.String |
getDomain()
The (optional) ObjectName domain in which this MBean
should be registered in the MBeanServer. |
java.util.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. |
java.lang.String |
getGroup()
The (optional) group to which this MBean belongs. |
java.lang.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. |
java.lang.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(java.lang.String className)
|
void |
setDescription(java.lang.String description)
|
void |
setDomain(java.lang.String domain)
|
void |
setGroup(java.lang.String group)
|
void |
setName(java.lang.String name)
|
void |
setType(java.lang.String type)
|
java.lang.String |
toString()
Return a string representation of this managed bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AttributeInfo[] attributes
protected java.lang.String className
protected ConstructorInfo[] constructors
protected java.lang.String description
protected java.lang.String domain
protected java.lang.String group
protected java.lang.String name
protected java.util.List fields
protected NotificationInfo[] notifications
protected OperationInfo[] operations
protected java.lang.String type
Constructor Detail |
---|
public ManagedBean()
Method Detail |
---|
public AttributeInfo[] getAttributes()
public java.lang.String getClassName()
javax.management.modelmbean.RequiredModeLMBean
)
will be utilized.
public void setClassName(java.lang.String className)
public ConstructorInfo[] getConstructors()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getDomain()
ObjectName
domain in which this MBean
should be registered in the MBeanServer.
public void setDomain(java.lang.String domain)
public java.util.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 java.lang.String getGroup()
public void setGroup(java.lang.String group)
public java.lang.String getName()
public void setName(java.lang.String name)
public NotificationInfo[] getNotifications()
public OperationInfo[] getOperations()
public java.lang.String getType()
public void setType(java.lang.String type)
public void addAttribute(AttributeInfo attribute)
attribute
- The new attribute descriptorpublic void addConstructor(ConstructorInfo constructor)
constructor
- The new constructor descriptorpublic 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 addedpublic void addNotification(NotificationInfo notification)
notification
- The new notification descriptorpublic void addOperation(OperationInfo operation)
operation
- The new operation descriptorpublic javax.management.modelmbean.ModelMBean createMBean() throws javax.management.InstanceNotFoundException, javax.management.modelmbean.InvalidTargetObjectTypeException, javax.management.MBeanException, javax.management.RuntimeOperationsException
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
.
javax.management.InstanceNotFoundException
- if the managed resource
object cannot be found
javax.management.modelmbean.InvalidTargetObjectTypeException
- if our MBean cannot
handle object references (should never happen)
javax.management.MBeanException
- if a problem occurs instantiating the
ModelMBean
instance
javax.management.RuntimeOperationsException
- if a JMX runtime error occurspublic javax.management.modelmbean.ModelMBean createMBean(java.lang.Object instance) throws javax.management.InstanceNotFoundException, javax.management.modelmbean.InvalidTargetObjectTypeException, javax.management.MBeanException, javax.management.RuntimeOperationsException
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
javax.management.InstanceNotFoundException
- if the managed resource
object cannot be found
javax.management.modelmbean.InvalidTargetObjectTypeException
- if our MBean cannot
handle object references (should never happen)
javax.management.MBeanException
- if a problem occurs instantiating the
ModelMBean
instance
javax.management.RuntimeOperationsException
- if a JMX runtime error occurspublic javax.management.modelmbean.ModelMBeanInfo createMBeanInfo()
ModelMBeanInfo
object that
describes this entire managed bean.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |