|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.convert.DefaultConversionRegistry
public class DefaultConversionRegistry
Implementation of a ConvertletRegistry.
Constructor Summary | |
---|---|
DefaultConversionRegistry()
|
Method Summary | ||
---|---|---|
|
findConversion(Class<F> from,
Class<T> to)
Attempt to find a ConversionPath. |
|
|
register(Class<F> from,
Class<T> to,
Convertlet<F,T> convertlet)
Register a Convertlet. |
|
|
registerJoker(Class<F> from,
Joker<F> joker)
Register a joker which is a conversion that trumps all other conversion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConversionRegistry()
Method Detail |
---|
public <F,T> void register(Class<F> from, Class<T> to, Convertlet<F,T> convertlet)
ConversionRegistry
register
in interface ConversionRegistry
from
- The convert from class.to
- The convert to class.convertlet
- The Convertlet.public <F> void registerJoker(Class<F> from, Joker<F> joker)
ConversionRegistry
NoConversionAvailableException
.
registerJoker
in interface ConversionRegistry
F
- The class of the from type.from
- The from type.joker
- The joker.public <F,T> ConversionPath<F,T> findConversion(Class<F> from, Class<T> to)
ConversionLookup
findConversion
in interface ConversionLookup
from
- The convert from class.to
- The convert to class.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |