Package org.glassfish.gmbal.impl
Class TypeConverterImpl.TypeConverterPlaceHolderImpl
- java.lang.Object
-
- org.glassfish.gmbal.impl.TypeConverterImpl.TypeConverterPlaceHolderImpl
-
- All Implemented Interfaces:
TypeConverter
- Enclosing class:
- TypeConverterImpl
public static class TypeConverterImpl.TypeConverterPlaceHolderImpl extends java.lang.Object implements TypeConverter
-
-
Field Summary
Fields Modifier and Type Field Description private EvaluatedType
et
-
Constructor Summary
Constructors Constructor Description TypeConverterPlaceHolderImpl(EvaluatedType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
fromManagedEntity(java.lang.Object entity)
Convert from a ManagedEntity to a problem-domain Object.EvaluatedType
getDataType()
Java generic type of attribute in problem-domain Object.javax.management.openmbean.OpenType
getManagedType()
Open MBeans Open Type for management domain object.boolean
isIdentity()
Returns true if this TypeConverter is an identity transformation.java.lang.Object
toManagedEntity(java.lang.Object obj)
Convert from a problem-domain Object obj to a managed entity.
-
-
-
Field Detail
-
et
private EvaluatedType et
-
-
Constructor Detail
-
TypeConverterPlaceHolderImpl
public TypeConverterPlaceHolderImpl(EvaluatedType type)
-
-
Method Detail
-
getDataType
public EvaluatedType getDataType()
Description copied from interface:TypeConverter
Java generic type of attribute in problem-domain Object.- Specified by:
getDataType
in interfaceTypeConverter
- Returns:
- The Java type that this TypeConverter handles.
-
getManagedType
public javax.management.openmbean.OpenType getManagedType()
Description copied from interface:TypeConverter
Open MBeans Open Type for management domain object.- Specified by:
getManagedType
in interfaceTypeConverter
- Returns:
- The OpenType that this TypeConverter handles.
-
toManagedEntity
public java.lang.Object toManagedEntity(java.lang.Object obj)
Description copied from interface:TypeConverter
Convert from a problem-domain Object obj to a managed entity.- Specified by:
toManagedEntity
in interfaceTypeConverter
- Parameters:
obj
- The Java object to be converted to an open type.- Returns:
- The resulting open type.
-
fromManagedEntity
public java.lang.Object fromManagedEntity(java.lang.Object entity)
Description copied from interface:TypeConverter
Convert from a ManagedEntity to a problem-domain Object.- Specified by:
fromManagedEntity
in interfaceTypeConverter
- Parameters:
entity
- The managed entity to be converted to a java type.- Returns:
- The resulting java type.
-
isIdentity
public boolean isIdentity()
Description copied from interface:TypeConverter
Returns true if this TypeConverter is an identity transformation.- Specified by:
isIdentity
in interfaceTypeConverter
- Returns:
- True if this TypeConverter is an identity transformation.
-
-