|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.MBeanFeatureInfo (src)
javax.management.MBeanAttributeInfo (src)
javax.management.modelmbean.ModelMBeanAttributeInfo
Represents a Model MBean's management attribute.
MBeanAttributeInfo
(src) ,
Serialized FormField Summary |
Fields inherited from class javax.management.MBeanFeatureInfo (src) |
description, name |
Constructor Summary | |
ModelMBeanAttributeInfo(ModelMBeanAttributeInfo (src) info)
Copy constructor. |
|
ModelMBeanAttributeInfo(java.lang.String name,
java.lang.String description,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter)
Creates a new attribute info with a default descriptor. |
|
ModelMBeanAttributeInfo(java.lang.String name,
java.lang.String description,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
Descriptor (src) descriptor)
Creates a new attribute info object. |
|
ModelMBeanAttributeInfo(java.lang.String name,
java.lang.String type,
java.lang.String description,
boolean isReadable,
boolean isWritable,
boolean isIs)
Creates a new attribute info object with a default descriptor. |
|
ModelMBeanAttributeInfo(java.lang.String name,
java.lang.String type,
java.lang.String description,
boolean isReadable,
boolean isWritable,
boolean isIs,
Descriptor (src) descriptor)
Creates a new attribute info object with a given descriptor. |
Method Summary | |
java.lang.Object |
clone()
Creates a copy of this object. |
Descriptor (src) |
getDescriptor()
Returns a copy of the descriptor associated with this attribute. |
void |
setDescriptor(Descriptor (src) inDescriptor)
Replaces the descriptor associated with this attribute. |
java.lang.String |
toString()
Returns a string representation of this Model MBean attribute info object. |
Methods inherited from class javax.management.MBeanAttributeInfo (src) |
equals, getType, hashCode, isIs, isReadable, isWritable |
Methods inherited from class javax.management.MBeanFeatureInfo (src) |
getDescription, getName |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ModelMBeanAttributeInfo(java.lang.String name, java.lang.String description, java.lang.reflect.Method getter, java.lang.reflect.Method setter) throws IntrospectionException (src)
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 (src)
- if the accessor methods are not valid for this attributepublic ModelMBeanAttributeInfo(java.lang.String name, java.lang.String description, java.lang.reflect.Method getter, java.lang.reflect.Method setter, Descriptor (src) descriptor) throws IntrospectionException (src)
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 (src)
- if the accessor methods are not valid for this attributepublic ModelMBeanAttributeInfo(java.lang.String name, java.lang.String type, java.lang.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(java.lang.String name, java.lang.String type, java.lang.String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor (src) 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 (src) info)
info
- the attribute info to copyMethod Detail |
public Descriptor (src) getDescriptor()
getDescriptor
in interface DescriptorAccess (src)
public void setDescriptor(Descriptor (src) inDescriptor)
setDescriptor
in interface DescriptorAccess (src)
inDescriptor
- descriptor used for replacing the existing operation descriptor
java.lang.IllegalArgumentException
- if the new descriptor is not validpublic java.lang.Object clone()
clone
in class MBeanAttributeInfo (src)
public java.lang.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 (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |