Home » openjdk-7 » javax » management » [javadoc | source]
javax.management
public class: MBeanAttributeInfo [javadoc | source]
java.lang.Object
   javax.management.MBeanFeatureInfo
      javax.management.MBeanAttributeInfo

All Implemented Interfaces:
    Cloneable, DescriptorRead, Serializable

Direct Known Subclasses:
    ModelMBeanAttributeInfo, OpenMBeanAttributeInfoSupport

Describes an MBean attribute exposed for management. Instances of this class are immutable. Subclasses may be mutable but this is not recommended.
Field Summary
static final  MBeanAttributeInfo[] NO_ATTRIBUTES     
Fields inherited from javax.management.MBeanFeatureInfo:
serialVersionUID,  name,  description
Constructor:
 public MBeanAttributeInfo(String name,
    String description,
    Method getter,
    Method setter) throws IntrospectionException 

    This constructor takes the name of a simple attribute, and Method objects for reading and writing the attribute. The Descriptor of the constructed object will include fields contributed by any annotations on the {@code Method} objects that contain the DescriptorKey meta-annotation.

    Parameters:
    name - The programmatic name of the attribute.
    description - A human readable description of the attribute.
    getter - The method used for reading the attribute value. May be null if the property is write-only.
    setter - The method used for writing the attribute value. May be null if the attribute is read-only.
    Throws:
    IntrospectionException - There is a consistency problem in the definition of this attribute.
    exception: IntrospectionException - There is a consistency problem in the definition of this attribute.
 public MBeanAttributeInfo(String name,
    String type,
    String description,
    boolean isReadable,
    boolean isWritable,
    boolean isIs) 
    Constructs an MBeanAttributeInfo object.
    Parameters:
    name - The name of the attribute.
    type - The type or class name of the attribute.
    description - A human readable description of the attribute.
    isReadable - True if the attribute has a getter method, false otherwise.
    isWritable - True if the attribute has a setter method, false otherwise.
    isIs - True if this attribute has an "is" getter, false otherwise.
    Throws:
    IllegalArgumentException - if {@code isIs} is true but {@code isReadable} is not, or if {@code isIs} is true and {@code type} is not {@code boolean} or {@code java.lang.Boolean}. (New code should always use {@code boolean} rather than {@code java.lang.Boolean}.)
 public MBeanAttributeInfo(String name,
    String type,
    String description,
    boolean isReadable,
    boolean isWritable,
    boolean isIs,
    Descriptor descriptor) 
    Constructs an MBeanAttributeInfo object.
    Parameters:
    name - The name of the attribute.
    type - The type or class name of the attribute.
    description - A human readable description of the attribute.
    isReadable - True if the attribute has a getter method, false otherwise.
    isWritable - True if the attribute has a setter method, false otherwise.
    isIs - True if this attribute has an "is" getter, false otherwise.
    descriptor - The descriptor for the attribute. This may be null which is equivalent to an empty descriptor.
    Throws:
    IllegalArgumentException - if {@code isIs} is true but {@code isReadable} is not, or if {@code isIs} is true and {@code type} is not {@code boolean} or {@code java.lang.Boolean}. (New code should always use {@code boolean} rather than {@code java.lang.Boolean}.)
    since: 1.6 -
Method from javax.management.MBeanAttributeInfo Summary:
clone,   equals,   getType,   hashCode,   isIs,   isReadable,   isWritable,   toString
Methods from javax.management.MBeanFeatureInfo:
equals,   getDescription,   getDescriptor,   getName,   hashCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.management.MBeanAttributeInfo Detail:
 public Object clone() 

    Returns a shallow clone of this instance. The clone is obtained by simply calling super.clone(), thus calling the default native shallow cloning mechanism implemented by Object.clone(). No deeper cloning of any internal field is made.

    Since this class is immutable, cloning is chiefly of interest to subclasses.

 public boolean equals(Object o) 
    Compare this MBeanAttributeInfo to another.
 public String getType() 
    Returns the class name of the attribute.
 public int hashCode() 
 public boolean isIs() 
    Indicates if this attribute has an "is" getter.
 public boolean isReadable() 
    Whether the value of the attribute can be read.
 public boolean isWritable() 
    Whether new values can be written to the attribute.
 public String toString()