public final class DefaultConverterLookup extends java.lang.Object implements ConverterLookup
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ConfigurationConverter> |
customConverters |
private static ConfigurationConverter[] |
DEFAULT_CONVERTERS |
private java.util.Map<java.lang.Class<?>,ConfigurationConverter> |
lookupCache |
| Constructor and Description |
|---|
DefaultConverterLookup() |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationConverter |
lookupConverterForType(java.lang.Class<?> type) |
void |
registerConverter(ConfigurationConverter converter) |
(package private) void |
setCustomConverters(java.util.List<ConfigurationConverter> converters) |
private static final ConfigurationConverter[] DEFAULT_CONVERTERS
private final java.util.Map<java.lang.Class<?>,ConfigurationConverter> lookupCache
private final java.util.List<ConfigurationConverter> customConverters
public void registerConverter(ConfigurationConverter converter)
registerConverter in interface ConverterLookuppublic ConfigurationConverter lookupConverterForType(java.lang.Class<?> type) throws ComponentConfigurationException
lookupConverterForType in interface ConverterLookupComponentConfigurationExceptionvoid setCustomConverters(java.util.List<ConfigurationConverter> converters)