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