MBeanAttributeInfo (Java SE 19 & JDK 19) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../java.base/java/io/Serializable.html "interface in java.io"), [Cloneable](../../../java.base/java/lang/Cloneable.html "interface in java.lang"), [DescriptorRead](DescriptorRead.html "interface in javax.management")

Direct Known Subclasses:

[ModelMBeanAttributeInfo](modelmbean/ModelMBeanAttributeInfo.html "class in javax.management.modelmbean"), [OpenMBeanAttributeInfoSupport](openmbean/OpenMBeanAttributeInfoSupport.html "class in javax.management.openmbean")


Describes an MBean attribute exposed for management. Instances of this class are immutable. Subclasses may be mutable but this is not recommended.

Since:

1.5

See Also:

Constructors
This constructor takes the name of a simple attribute, and Method objects for reading and writing the attribute.
[MBeanAttributeInfo](#%3Cinit%3E%28java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean%29)([String](../../../java.base/java/lang/String.html "class in java.lang") name,[String](../../../java.base/java/lang/String.html "class in java.lang") type,[String](../../../java.base/java/lang/String.html "class in java.lang") description, boolean isReadable, boolean isWritable, boolean isIs)
Constructs an MBeanAttributeInfo object.
[MBeanAttributeInfo](#%3Cinit%3E%28java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,javax.management.Descriptor%29)([String](../../../java.base/java/lang/String.html "class in java.lang") name,[String](../../../java.base/java/lang/String.html "class in java.lang") type,[String](../../../java.base/java/lang/String.html "class in java.lang") description, boolean isReadable, boolean isWritable, boolean isIs,[Descriptor](Descriptor.html "interface in javax.management") descriptor)
Constructs an MBeanAttributeInfo object.

[clone](#clone%28%29)()
Returns a shallow clone of this instance.
boolean
Compare this MBeanAttributeInfo to another.
[getType](#getType%28%29)()
Returns the class name of the attribute.
boolean
[isIs](#isIs%28%29)()
Indicates if this attribute has an "is" getter.
boolean
Whether the value of the attribute can be read.
boolean
Whether new values can be written to the attribute.