| javax.management.MBeanAttributeInfo javax.management.modelmbean.ModelMBeanAttributeInfo
ModelMBeanAttributeInfo | public class ModelMBeanAttributeInfo extends MBeanAttributeInfo implements DescriptorAccess,Cloneable(Code) | | Represents a Model MBean's management attribute.
See Also: javax.management.MBeanAttributeInfo author: Juha Lindfors. author: Adrian Brock. author: Thomas Diesler. version: $Revision: 57200 $ version: Revisions: version: 20020320 Juha Lindfors: version: version: - toString() implementation
version: - Changed the default descriptor to include field currencyTimeLimit
version: with a value -1. Since default descriptors do not include method mapping version: this automatically caches attribute values in the Model MBean. version: version:
version: 20020715 Adrian Brock: version: version: - Serialization
version:
|
Constructor Summary | |
public | ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter) Creates a new attribute info with a default descriptor. | public | ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter, Descriptor descriptor) Creates a new attribute info object. | public | ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs) Creates a new attribute info object with a default descriptor. | public | 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. | public | ModelMBeanAttributeInfo(ModelMBeanAttributeInfo info) Copy constructor. |
Method Summary | |
public synchronized Object | clone() Creates a copy of this object. | public Descriptor | getDescriptor() Returns a copy of the descriptor associated with this attribute. | public void | setDescriptor(Descriptor inDescriptor) Replaces the descriptor associated with this attribute. | public String | toString() Returns a string representation of this Model MBean attribute info object.
The returned string is in the form:
ModelMBeanAttributeInfo[Name=<attribute name>,
Type=<class name of the attribute type>,
Access= RW | RO | WO,
Descriptor=(fieldName1=fieldValue1, ... |
ModelMBeanAttributeInfo | public ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter) throws IntrospectionException(Code) | | Creates a new attribute info with a default descriptor.
Parameters: name - name of the attribute Parameters: description - human readable description string Parameters: getter - a Method instance representing a read method for this attribute Parameters: setter - a Method instance representing a write method for this attribute throws: IntrospectionException - if the accessor methods are not valid for this attribute |
ModelMBeanAttributeInfo | public ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter, Descriptor descriptor) throws IntrospectionException(Code) | | Creates a new attribute info object. If a null or
invalid descriptor is passed as a parameter, a default descriptor will be created
for the attribute.
Parameters: name - name of the attribute Parameters: description - human readable description string Parameters: getter - a Method instance representing a read method for this attribute Parameters: setter - a Method instance representing a write method for this attribute Parameters: descriptor - a descriptor to associate with this attribute throws: IntrospectionException - if the accessor methods are not valid for this attribute |
ModelMBeanAttributeInfo | public ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs)(Code) | | Creates a new attribute info object with a default descriptor.
Parameters: name - name of the attribute Parameters: type - fully qualified class name of the attribute's type Parameters: description - human readable description string Parameters: isReadable - true if attribute is readable; false otherwise Parameters: isWritable - true if attribute is writable; false otherwise Parameters: isIs - (not used for Model MBeans; false) |
ModelMBeanAttributeInfo | public ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)(Code) | | Creates a new attribute info object with a given descriptor. If a null or invalid
descriptor is passed as a parameter, a default descriptor will be created for the attribute.
Parameters: name - name of the attribute Parameters: type - fully qualified class name of the attribute's type Parameters: description - human readable description string Parameters: isReadable - true if the attribute is readable; false otherwise Parameters: isWritable - true if the attribute is writable; false otherwise Parameters: isIs - (not used for Model MBeans; false) |
ModelMBeanAttributeInfo | public ModelMBeanAttributeInfo(ModelMBeanAttributeInfo info)(Code) | | Copy constructor.
Parameters: info - the attribute info to copy |
clone | public synchronized Object clone()(Code) | | Creates a copy of this object.
clone of this object |
getDescriptor | public Descriptor getDescriptor()(Code) | | Returns a copy of the descriptor associated with this attribute.
a copy of this attribute's descriptor |
setDescriptor | public void setDescriptor(Descriptor inDescriptor)(Code) | | Replaces the descriptor associated with this attribute. If the inDescriptor
argument is null then the existing descriptor is replaced with a default
descriptor.
Parameters: inDescriptor - descriptor used for replacing the existing operation descriptor throws: IllegalArgumentException - if the new descriptor is not valid |
toString | public String toString()(Code) | | Returns a string representation of this Model MBean attribute info object.
The returned string is in the form:
ModelMBeanAttributeInfo[Name=<attribute name>,
Type=<class name of the attribute type>,
Access= RW | RO | WO,
Descriptor=(fieldName1=fieldValue1, ... , fieldName<n>=fieldValue<n>)]
string representation of this object |
|
|