|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.management.util.jmx.OpenMBeanUtil
public final class OpenMBeanUtil
Utilities dealing with OpenMBeans
| Method Summary | |
|---|---|
static Map<String,Serializable> |
compositeDataToMap(CompositeData data)
Convert a CompositeData to a Map. |
static Map<String,Serializable> |
convertTypes(Map<String,Serializable> orig)
Convert certain types and return a new Map: Collection converts to an array Nulls are not eliminated; use MapUtil.newMapNoNullValues(java.util.Map to
do that before or after. |
static OpenType |
getOpenType(Object o)
Get the OpenType of an Object, which must conform to OpenType requirements. |
static SimpleType |
getSimpleType(Class c)
Get the SimpleType for a class which can be so-represented. |
static OpenType |
getStackTraceElementOpenType()
Get a CompositeType describing a CompositeData which has no elements. |
static OpenType |
getThrowableOpenType(Throwable t)
Get a CompositeType describing a CompositeData which has no elements. |
static CompositeData |
mapToCompositeData(String typeName,
String description,
Map<String,Object> map)
Create a CompositeData from a Map. |
static CompositeType |
mapToCompositeType(String typeName,
String description,
Map<String,?> map,
CompositeTypeFromNameCallback callback)
Create a CompositeType from a Map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SimpleType getSimpleType(Class c)
public static OpenType getOpenType(Object o)
throws InvalidOpenTypeException,
OpenDataException
InvalidOpenTypeException
OpenDataExceptionpublic static Map<String,Serializable> convertTypes(Map<String,Serializable> orig)
MapUtil.newMapNoNullValues(java.util.Map) to
do that before or after.
public static CompositeType mapToCompositeType(String typeName,
String description,
Map<String,?> map,
CompositeTypeFromNameCallback callback)
throws OpenDataException
typeName - the arbitrary name of the OpenType to be useddescription - the arbitrary description of the OpenType to be usedmap - a Map keyed by String, whose values may not be null
OpenDataException
public static CompositeData mapToCompositeData(String typeName,
String description,
Map<String,Object> map)
throws OpenDataException
typeName - the arbitrary name of the OpenType to be useddescription - the arbitrary description of the OpenType to be usedmap - a Map keyed by String, whose values may not be null
OpenDataExceptionpublic static Map<String,Serializable> compositeDataToMap(CompositeData data)
public static OpenType getStackTraceElementOpenType()
throws OpenDataException
OpenDataException
public static OpenType getThrowableOpenType(Throwable t)
throws OpenDataException
OpenDataException
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.