javax.jmx.openmbean
Class OpenMBeanAttributeInfo

java.lang.Object
  |
  +--javax.management.MBeanFeatureInfo
        |
        +--javax.management.MBeanAttributeInfo
              |
              +--javax.jmx.openmbean.OpenMBeanAttributeInfo
Direct Known Subclasses:
CompositeAttributeInfo

public class OpenMBeanAttributeInfo
extends MBeanAttributeInfo
implements java.io.Serializable

Describes management information of an open mbean's attribute.

See Also:
Serialized Form

Fields inherited from class javax.management.MBeanAttributeInfo
NO_ATTRIBUTES
 
Fields inherited from class javax.management.MBeanFeatureInfo
description, name
 
Constructor Summary
OpenMBeanAttributeInfo(java.lang.String name, java.lang.String description, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
          Constructs a OpenMBeanAttributeInfo object.
OpenMBeanAttributeInfo(java.lang.String name, java.lang.String type, java.lang.String description, boolean isReadable, boolean isWritable, boolean isIs)
          Constructs a OpenMBeanAttributeInfo object.
OpenMBeanAttributeInfo(java.lang.String name, java.lang.String type, java.lang.String description, boolean isReadable, boolean isWritable, boolean isIs, java.lang.Object defaultValue, java.lang.Object[] legalValues)
          Constructs a OpenMBeanAttributeInfo object.
 
Method Summary
 java.lang.Object getDefaultValue()
          Getter for the default value of this attribute
 java.lang.Object[] getLegalValues()
          Getter for the legal values of this attribute
 
Methods inherited from class javax.management.MBeanAttributeInfo
, clone, equals, getType, hashCode, isIs, isReadable, isWritable, toString
 
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

OpenMBeanAttributeInfo

public OpenMBeanAttributeInfo(java.lang.String name,
                              java.lang.String type,
                              java.lang.String description,
                              boolean isReadable,
                              boolean isWritable,
                              boolean isIs,
                              java.lang.Object defaultValue,
                              java.lang.Object[] legalValues)
Constructs a OpenMBeanAttributeInfo 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 - specifies whether the attribute has read permission.
isWritable - specifies whether the attribute has write permission.
defaultValue - The default value for the attribute.
legalValues - The set of permitted values for the attribute.

OpenMBeanAttributeInfo

public OpenMBeanAttributeInfo(java.lang.String name,
                              java.lang.String type,
                              java.lang.String description,
                              boolean isReadable,
                              boolean isWritable,
                              boolean isIs)
Constructs a OpenMBeanAttributeInfo 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 - specifies whether the attribute has read permission.
isWritable - specifies whether the attribute has write permission.

OpenMBeanAttributeInfo

public OpenMBeanAttributeInfo(java.lang.String name,
                              java.lang.String description,
                              java.lang.reflect.Method getter,
                              java.lang.reflect.Method setter)
                       throws IntrospectionException
Constructs a OpenMBeanAttributeInfo 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.
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.
Method Detail

getDefaultValue

public java.lang.Object getDefaultValue()
Getter for the default value of this attribute
Returns:
the default value object

getLegalValues

public java.lang.Object[] getLegalValues()
Getter for the legal values of this attribute
Returns:
the legal values object array