Class: sun.management.MappedMXBeanType
- @SuppressWarnings(value={"unchecked"})
- public abstract class MappedMXBeanType
A mapped mxbean type maps a Java type to an open type.
Only the following Java types are mappable
(currently required by the platform MXBeans):
1. Primitive types
2. Wrapper classes such java.lang.Integer, etc
3. Classes with only getter methods and with a static "from" method
that takes a CompositeData argument.
4. E[] where E is a type of 1-4 (can be multi-dimensional array)
5. List where E is a type of 1-3
6. Map where K and V are a type of 1-4
OpenDataException will be thrown if a Java type is not supported.
Methods
-
MappedMXBeanTypetop
public MappedMXBeanType() -
decapitalizetop
Utility method to take a string and convert it to normal Java variable name capitalization. This normally means converting the first character from upper case to lower case, but in the (unusual) special case when there is more than one character and both the first and second characters are upper case, we leave it alone.Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays as "URL".
-
getJavaTypetop
abstract Type getJavaType() -
getMappedTypetop
-
getMappedTypeClasstop
Class getMappedTypeClass() -
getNametop
abstract String getName() -
getOpenTypetop
OpenType getOpenType() -
getTypeNametop
String getTypeName() -
isBasicTypetop
boolean isBasicType() -
newBasicTypetop
-
newMappedTypetop
-
toJavaTypeDatatop
abstract Object toJavaTypeData(Object openTypeData) throws OpenDataException, InvalidObjectException -
toJavaTypeDatatop
public static Object toJavaTypeData(Object openData, Type t) throws OpenDataException, InvalidObjectException -
toOpenTypetop
-
toOpenTypeDatatop
-
toOpenTypeDatatop
Fields
-
COMPOSITE_DATA_CLASS
static final private Class<?> COMPOSITE_DATA_CLASS -
KEY
static final private String KEY = "key" -
VALUE
static final private String VALUE = "value" -
convertedTypes
-
inProgress
static final private OpenType inProgress -
isBasicType
boolean isBasicType -
mapIndexNames
static final private String[] mapIndexNames -
mapItemNames
static final private String[] mapItemNames -
mappedTypeClass
Class mappedTypeClass -
openType
OpenType openType -
simpleTypes
static final private OpenType[] simpleTypes
