public interface Converters
register(Class) method is called to register all converters found.
Before registration the default implementation check the priority of each converter,
and in the case of multiple converter for the same type, only the converter with highest
priority will registered.| Modifier and Type | Method and Description |
|---|---|
boolean |
existsFor(Class<?> type)
Returns true if a converter exists for the type.
|
boolean |
existsTwoWayFor(Class<?> type) |
void |
register(Class<? extends Converter<?>> converterClass)
Register a converter.
|
<T> Converter<T> |
to(Class<T> type)
Extracts a converter for this specific type.
|
TwoWayConverter<?> |
twoWayConverterFor(Class<?> type) |
void register(Class<? extends Converter<?>> converterClass)
converterClass - boolean existsFor(Class<?> type)
boolean existsTwoWayFor(Class<?> type)
TwoWayConverter<?> twoWayConverterFor(Class<?> type)
Copyright © 2014 Caelum. All rights reserved.