|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.hammurapi.convert.ConvertingService
public class ConvertingService
Field Summary | |
---|---|
static Converter |
CONVERTER
Converter which delegates to convert() method. |
Constructor Summary | |
---|---|
ConvertingService()
|
Method Summary | |
---|---|
static java.lang.Object |
convert(java.lang.Object source,
java.lang.Class targetType)
Converts source to target type using converters loaded from META-INF/config/biz.hammurapi.convert.Converter resources. |
static java.lang.Object |
convert(java.lang.Object source,
java.lang.Class targetType,
java.lang.ClassLoader classLoader)
Converts source to target type using converters loaded from META-INF/config/biz.hammurapi.convert.Converter resources. |
static java.lang.Object |
convert(java.lang.Object source,
java.lang.Class targetType,
Context context)
Converts source to target type using converters loaded from META-INF/config/biz.hammurapi.convert.Converter resources. |
static java.lang.Object |
convert(java.lang.Object source,
java.lang.Class targetType,
Context context,
java.lang.ClassLoader classLoader)
Converts source to target type using converters loaded from META-INF/config/biz.hammurapi.convert.Converter resources. |
static ConverterClosure |
getConverter(java.lang.Class sourceType,
java.lang.Class targetType)
Converts source to target type using converters loaded from META-INF/config/biz.hammurapi.convert.Converter resources. |
static ConverterClosure |
getConverter(java.lang.Class sourceType,
java.lang.Class targetType,
java.lang.ClassLoader classLoader)
Converts source to target type using converters loaded from META-INF/config/biz.hammurapi.convert.Converter resources. |
static ConverterClosure |
getConverter(java.lang.Class sourceType,
java.lang.Class targetType,
Context context)
Converts source to target type using converters loaded from META-INF/config/biz.hammurapi.convert.Converter resources. |
static ConverterClosure |
getConverter(java.lang.Class sourceType,
java.lang.Class targetType,
Context context,
java.lang.ClassLoader classLoader)
Converts source to target type using converters loaded from META-INF/config/biz.hammurapi.convert.Converter resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Converter CONVERTER
Constructor Detail |
---|
public ConvertingService()
Method Detail |
---|
public static java.lang.Object convert(java.lang.Object source, java.lang.Class targetType) throws ConversionException
convert(source, targetType, false)
source
- Source object.targetType
- Target type.
ConversionException
public static java.lang.Object convert(java.lang.Object source, java.lang.Class targetType, Context context) throws ConversionException
convert(source, targetType, false)
source
- Source object.targetType
- Target type.context
- Conversion context.
ConversionException
public static java.lang.Object convert(java.lang.Object source, java.lang.Class targetType, java.lang.ClassLoader classLoader) throws ConversionException
convert(source, targetType, false)
source
- Source object.targetType
- Target type.classLoader
- Class loader, source of converters.
ConversionException
public static java.lang.Object convert(java.lang.Object source, java.lang.Class targetType, Context context, java.lang.ClassLoader classLoader) throws ConversionException
META-INF/config/biz.hammurapi.convert.Converter
resources.
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
source
- Source object.targetType
- Target type.context
- Conversion context.classLoader
- Class loader.
ConversionException
public static ConverterClosure getConverter(java.lang.Class sourceType, java.lang.Class targetType)
META-INF/config/biz.hammurapi.convert.Converter
resources.
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
sourceType
- Source type.targetType
- Target type.
ConversionException
public static ConverterClosure getConverter(java.lang.Class sourceType, java.lang.Class targetType, java.lang.ClassLoader classLoader)
META-INF/config/biz.hammurapi.convert.Converter
resources.
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
sourceType
- Source type.targetType
- Target type.classLoader
- Class loader to retrieve converters from.
ConversionException
public static ConverterClosure getConverter(java.lang.Class sourceType, java.lang.Class targetType, Context context)
META-INF/config/biz.hammurapi.convert.Converter
resources.
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
sourceType
- Source type.targetType
- Target type.context
- Conversion context.
ConversionException
public static ConverterClosure getConverter(java.lang.Class sourceType, java.lang.Class targetType, Context context, java.lang.ClassLoader classLoader)
META-INF/config/biz.hammurapi.convert.Converter
resources.
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
sourceType
- Source type.targetType
- Target type.context
- Conversion context.classLoader
- Class loader to retrieve converters from.
ConversionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |