|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.MBeanFeatureInfo javax.management.MBeanAttributeInfo javax.management.modelmbean.ModelMBeanAttributeInfo
Represents a Model MBean's management attribute.
Revisions:
20020320 Juha Lindfors:
20020715 Adrian Brock:
MBeanAttributeInfo
,
Serialized FormField Summary |
Fields inherited from class javax.management.MBeanFeatureInfo |
description, name |
Constructor Summary | |
ModelMBeanAttributeInfo(ModelMBeanAttributeInfo info)
Copy constructor. |
|
ModelMBeanAttributeInfo(String name,
String description,
Method getter,
Method setter)
Creates a new attribute info with a default descriptor. |
|
ModelMBeanAttributeInfo(String name,
String description,
Method getter,
Method setter,
Descriptor descriptor)
Creates a new attribute info object. |
|
ModelMBeanAttributeInfo(String name,
String type,
String description,
boolean isReadable,
boolean isWritable,
boolean isIs)
Creates a new attribute info object with a default descriptor. |
|
ModelMBeanAttributeInfo(String name,
String type,
String description,
boolean isReadable,
boolean isWritable,
boolean isIs,
Descriptor descriptor)
Creates a new attribute info object with a given descriptor. |
Method Summary | |
Object |
clone()
Creates a copy of this object. |
Descriptor |
getDescriptor()
Returns a copy of the descriptor associated with this attribute. |
void |
setDescriptor(Descriptor inDescriptor)
Replaces the descriptor associated with this attribute. |
String |
toString()
Returns a string representation of this Model MBean attribute info object. |
Methods inherited from class javax.management.MBeanAttributeInfo |
equals, getType, hashCode, isIs, isReadable, isWritable |
Methods inherited from class javax.management.MBeanFeatureInfo |
getDescription, getName |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter) throws IntrospectionException
name
- name of the attributedescription
- human readable description stringgetter
- a Method instance representing a read method for this attributesetter
- a Method instance representing a write method for this attribute
IntrospectionException
- if the accessor methods are not valid for this attributepublic ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter, Descriptor descriptor) throws IntrospectionException
name
- name of the attributedescription
- human readable description stringgetter
- a Method instance representing a read method for this attributesetter
- a Method instance representing a write method for this attributedescriptor
- a descriptor to associate with this attribute
IntrospectionException
- if the accessor methods are not valid for this attributepublic ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs)
name
- name of the attributetype
- fully qualified class name of the attribute's typedescription
- human readable description stringisReadable
- true if attribute is readable; false otherwiseisWritable
- true if attribute is writable; false otherwiseisIs
- (not used for Model MBeans; false)public ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)
name
- name of the attributetype
- fully qualified class name of the attribute's typedescription
- human readable description stringisReadable
- true if the attribute is readable; false otherwiseisWritable
- true if the attribute is writable; false otherwiseisIs
- (not used for Model MBeans; false)public ModelMBeanAttributeInfo(ModelMBeanAttributeInfo info)
info
- the attribute info to copyMethod Detail |
public Descriptor getDescriptor()
getDescriptor
in interface DescriptorAccess
public void setDescriptor(Descriptor inDescriptor)
setDescriptor
in interface DescriptorAccess
inDescriptor
- descriptor used for replacing the existing operation descriptor
IllegalArgumentException
- if the new descriptor is not validpublic Object clone()
clone
in class MBeanAttributeInfo
public String toString()
ModelMBeanAttributeInfo[Name=<attribute name>, Type=<class name of the attribute type>, Access= RW | RO | WO, Descriptor=(fieldName1=fieldValue1, ... , fieldName<n>=fieldValue<n>)]
toString
in class MBeanAttributeInfo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |