@ApplicationScoped public final class DefaultConverters extends java.lang.Object implements Converters
Constructor and Description |
---|
DefaultConverters(Container container) |
Modifier and Type | Method and Description |
---|---|
boolean |
existsFor(java.lang.Class<?> type) |
boolean |
existsTwoWayFor(java.lang.Class<?> type) |
void |
register(java.lang.Class<? extends Converter<?>> converterClass) |
<T> Converter<T> |
to(java.lang.Class<T> clazz)
Extracts a converter for this specific type.
|
TwoWayConverter<?> |
twoWayConverterFor(java.lang.Class<?> type) |
public DefaultConverters(Container container)
public void register(java.lang.Class<? extends Converter<?>> converterClass)
register
in interface Converters
public <T> Converter<T> to(java.lang.Class<T> clazz)
Converters
to
in interface Converters
public boolean existsFor(java.lang.Class<?> type)
existsFor
in interface Converters
public boolean existsTwoWayFor(java.lang.Class<?> type)
existsTwoWayFor
in interface Converters
public TwoWayConverter<?> twoWayConverterFor(java.lang.Class<?> type)
twoWayConverterFor
in interface Converters
Copyright © 2013 Caelum. All Rights Reserved.