|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.typeconverter.TypeConverterManagerBean
public class TypeConverterManagerBean
Provides dynamic object conversion to a type.
Contains a map of registered converters. User may add new converters.
Instantiable version of TypeConverterManager.
| Field Summary | |
|---|---|
protected ConvertBean |
convertBean
|
| Constructor Summary | |
|---|---|
TypeConverterManagerBean()
|
|
| Method Summary | ||
|---|---|---|
|
convertType(java.lang.Object value,
java.lang.Class<T> destinationType)
Converts an object to destination type.If destination type is one of common types, consider using Convert instead for faster approach. |
|
ConvertBean |
getConvertBean()
Returns ConvertBean. |
|
TypeConverter |
lookup(java.lang.Class type)
Retrieves converter for provided type. |
|
void |
register(java.lang.Class type,
TypeConverter typeConverter)
Registers a converter for specified type. |
|
void |
registerDefaults()
Registers default set of converters. |
|
void |
unregister(java.lang.Class type)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConvertBean convertBean
| Constructor Detail |
|---|
public TypeConverterManagerBean()
| Method Detail |
|---|
public ConvertBean getConvertBean()
ConvertBean.
public void registerDefaults()
public void register(java.lang.Class type,
TypeConverter typeConverter)
type - class that converter is fortypeConverter - converter for provided classpublic void unregister(java.lang.Class type)
public TypeConverter lookup(java.lang.Class type)
null
public <T> T convertType(java.lang.Object value,
java.lang.Class<T> destinationType)
Convert instead for faster approach.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||