|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.hibernate.objectstore.persistence.hibspi.accessor.ConverterFactory
public class ConverterFactory
Factory to return a PropertyConverter for conversion between a specific NakedObjects value holder type and
standard Java data type.
Additional Converters can be added by calling add(Class, PropertyConverter).
Note that this is a singleton.
TODO: find some way to hook into @Value support.
| Method Summary | |
|---|---|
void |
add(java.lang.Class<?> valueType,
PropertyConverter converter)
Add a converter for the specified value type |
PropertyConverter |
getConverter(java.lang.Class<?> nakedClass)
Return a PropertyConverter which converts from a value holder to a persistent class. |
PropertyConverter |
getConverter(NakedObjectAssociation field)
|
PropertyConverter |
getConverter(java.lang.String nakedClass)
Return a PropertyConverter which converts from a value holder to a persistent class. |
static ConverterFactory |
getInstance()
Return the singleton ConverterFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public PropertyConverter getConverter(java.lang.Class<?> nakedClass)
PropertyConverter which converts from a value holder to a persistent class.
nakedClass - Class of the value holder to convert from eg WholeNumber.classpublic PropertyConverter getConverter(java.lang.String nakedClass)
nakedClass - name of the value holder to convert from
public PropertyConverter getConverter(NakedObjectAssociation field)
public void add(java.lang.Class<?> valueType,
PropertyConverter converter)
public static ConverterFactory getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||