|
JBossMX Parent POM 6.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.mxbean.MXBeanUtils
public class MXBeanUtils
Utils.
| Field Summary | |
|---|---|
static String[] |
MAP_INDEX_NAMES
Map index names |
static String[] |
MAP_ITEM_NAMES
Map item names |
static String |
MAP_KEY
The map key |
static String |
MAP_VALUE
The map value |
| Constructor Summary | |
|---|---|
MXBeanUtils()
|
|
| Method Summary | ||
|---|---|---|
static ArrayType |
checkArray(Type type)
Get the array type for a class |
|
static ArrayType |
checkCollection(Type type)
Get the collection type for a class |
|
static ArrayType |
checkCollectionClass(Class clazz)
Get the collection type for a class |
|
static SimpleType |
checkEnum(Type type)
Get the simple type for an enum |
|
static TabularType |
checkMap(Type type)
Get the map type for a class |
|
static TabularType |
checkMapClass(Class<?> clazz)
Get the map type for a class |
|
static SimpleType |
checkSimpleType(Type type)
Get the SimpleType for a class |
|
static OpenType |
checkType(Type type)
Get the for a class that is not composite |
|
static Object |
construct(OpenType openType,
Object value,
Object context)
Construct some open data |
|
static Object |
construct(Type type,
Object value,
Object context)
Construct some open data |
|
static Object |
constructArrayData(OpenType openType,
Object value,
Object context)
Construct an array type open data |
|
static Object |
constructCompositeData(OpenType openType,
Object value,
Object context)
Construct composite type open data |
|
static Object |
constructSimpleData(Object value)
Construct a simple type open data |
|
static Object |
constructTabularData(OpenType openType,
Object value,
Object context)
Construct a tabular type open data |
|
static
|
createCompositeDataProxy(Class<T> intf,
CompositeData compositeData)
Create a composite data proxy |
|
static TabularType |
createMapType(Type keyType,
Type valueType)
Create a map type |
|
static DynamicMBean |
createMXBean(Object resource,
Class<?> mxbeanInterface)
Create a new MXBean |
|
static String |
getCompositeDataKey(Method method)
Get the key for a composite data getter method |
|
static Method |
getCompositeDataMethod(Class clazz,
String key,
boolean isBoolean)
Get the key for a composite data getter method |
|
static OpenType |
getOpenType(Type type)
Get the OpenType for a class |
|
static SimpleType |
getSimpleType(Class<?> type)
Get the SimpleType for a class |
|
static Object |
reconstruct(OpenType openType,
Type type,
Object value,
Object context)
Reconstruct a type from an object |
|
static Object |
reconstruct(Type type,
Object value,
Object context)
Reconstruct a type from an object |
|
static Object |
reconstructArrayData(OpenType openType,
Type type,
Object value,
Object context)
Reconstruct an array type |
|
static Object |
reconstructCompositeData(OpenType openType,
Type type,
Object value,
Object context)
Reconstruct a composite type |
|
static Object |
reconstructTabularData(OpenType openType,
Type type,
Object value,
Object context)
Reconstruct a tabular type |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MAP_KEY
public static final String MAP_VALUE
public static final String[] MAP_INDEX_NAMES
public static final String[] MAP_ITEM_NAMES
| Constructor Detail |
|---|
public MXBeanUtils()
| Method Detail |
|---|
public static OpenType getOpenType(Type type)
type - the type
public static SimpleType getSimpleType(Class<?> type)
throws Exception
type - the type
Exception - for any errorpublic static OpenType checkType(Type type)
type - the type
public static <T> T createCompositeDataProxy(Class<T> intf,
CompositeData compositeData)
T - the interface typeintf - the interface typecompositeData - the composite data
public static Object construct(Type type,
Object value,
Object context)
throws Exception
type - the typevalue - the valuecontext - the context
Exception - for any error
public static Object construct(OpenType openType,
Object value,
Object context)
throws Exception
openType - the open typevalue - the valuecontext - the context
Exception - for any error
public static Object reconstruct(Type type,
Object value,
Object context)
throws Exception
type - the typevalue - the valuecontext - for error reporting
Exception - for any error
public static Object reconstruct(OpenType openType,
Type type,
Object value,
Object context)
throws Exception
openType - the open typetype - the typevalue - the valuecontext - for error reporting
Exception - for any errorpublic static SimpleType checkSimpleType(Type type)
type - the type
public static SimpleType checkEnum(Type type)
type - the type
public static Object constructSimpleData(Object value)
value - the value
public static ArrayType checkArray(Type type)
type - the type
public static ArrayType checkCollection(Type type)
type - the type
public static ArrayType checkCollectionClass(Class clazz)
clazz - the class
public static Object constructArrayData(OpenType openType,
Object value,
Object context)
throws Exception
openType - the open typevalue - the valuecontext - the context
Exception - for any error
public static Object reconstructArrayData(OpenType openType,
Type type,
Object value,
Object context)
throws Exception
openType - the open typetype - the typevalue - the valuecontext - the context
Exception - for any errorpublic static TabularType checkMap(Type type)
type - the type
public static TabularType checkMapClass(Class<?> clazz)
clazz - the class
public static TabularType createMapType(Type keyType,
Type valueType)
keyType - the key typevalueType - the value type
public static Object constructTabularData(OpenType openType,
Object value,
Object context)
throws Exception
openType - the open typevalue - the valuecontext - the context
Exception - for any error
public static Object reconstructTabularData(OpenType openType,
Type type,
Object value,
Object context)
throws Exception
openType - the open typetype - the typevalue - the valuecontext - the context
Exception - for any error
public static Object constructCompositeData(OpenType openType,
Object value,
Object context)
throws Exception
openType - the open typevalue - the valuecontext - the context
Exception - for any error
public static Object reconstructCompositeData(OpenType openType,
Type type,
Object value,
Object context)
throws Exception
openType - the open typetype - the typevalue - the valuecontext - the context
Exception - for any errorpublic static String getCompositeDataKey(Method method)
method - the method
public static Method getCompositeDataMethod(Class clazz,
String key,
boolean isBoolean)
throws Exception
clazz - the classkey - the keyisBoolean - whether it is boolean
Exception - for any error
public static DynamicMBean createMXBean(Object resource,
Class<?> mxbeanInterface)
resource - the resourcemxbeanInterface - the interface
|
JBossMX Parent POM 6.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||