Package org.glassfish.gmbal.impl
Enum ManagedObjectManagerInternal.AttributeDescriptorType
- java.lang.Object
-
- java.lang.Enum<ManagedObjectManagerInternal.AttributeDescriptorType>
-
- org.glassfish.gmbal.impl.ManagedObjectManagerInternal.AttributeDescriptorType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ManagedObjectManagerInternal.AttributeDescriptorType>
- Enclosing interface:
- ManagedObjectManagerInternal
public static enum ManagedObjectManagerInternal.AttributeDescriptorType extends java.lang.Enum<ManagedObjectManagerInternal.AttributeDescriptorType>
Used in getAttributes to indicate type of Attribute being considered. This matters because JMX (unforunately) defines different rules for converting method names to attribute ids in MBeans and in CompositeData: for MBeans, an initial get or set is stripped, leaving an ID with an initial upper case letter; for CompositeData, JMX follows the JavaBeans conventions, and converts the first letter of the ID to lower case. Since getAttributes is used in both cases, it needs to know the difference.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPOSITE_DATA_ATTR
MBEAN_ATTR
-
Constructor Summary
Constructors Modifier Constructor Description private
AttributeDescriptorType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ManagedObjectManagerInternal.AttributeDescriptorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ManagedObjectManagerInternal.AttributeDescriptorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MBEAN_ATTR
public static final ManagedObjectManagerInternal.AttributeDescriptorType MBEAN_ATTR
-
COMPOSITE_DATA_ATTR
public static final ManagedObjectManagerInternal.AttributeDescriptorType COMPOSITE_DATA_ATTR
-
-
Method Detail
-
values
public static ManagedObjectManagerInternal.AttributeDescriptorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ManagedObjectManagerInternal.AttributeDescriptorType c : ManagedObjectManagerInternal.AttributeDescriptorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ManagedObjectManagerInternal.AttributeDescriptorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-