public class ConverterRepository extends AbstractConfiguringServiceLoaderRepository<Converter>
Modifier and Type | Class and Description |
---|---|
private static class |
ConverterRepository.LazyHolder |
Modifier and Type | Field and Description |
---|---|
private Map<ConverterKeyType,Converter<?,?>> |
converter |
Modifier | Constructor and Description |
---|---|
private |
ConverterRepository() |
Modifier and Type | Method and Description |
---|---|
<T,F> Converter<T,F> |
getConverter(ConverterKeyType key) |
<T,F> Converter<T,F> |
getConverter(String fromNamespace,
String toNamespace) |
Set<String> |
getFromNamespaceConverterTo(String toNamespace)
Get all namespaces for which a converter is available to convert from
requested format to default format
|
static ConverterRepository |
getInstance() |
boolean |
hasConverter(String fromNamespace,
String toNamespace)
Checks if a converter is available to convert the stored object from the
default format to the requested format
|
protected void |
processConfiguredImplementations(Set<Converter> converter) |
processImplementations
checkConnectionProviderIdentifications, load, update
private final Map<ConverterKeyType,Converter<?,?>> converter
public static ConverterRepository getInstance()
protected void processConfiguredImplementations(Set<Converter> converter) throws ConfigurationException
processConfiguredImplementations
in class AbstractConfiguringServiceLoaderRepository<Converter>
ConfigurationException
public <T,F> Converter<T,F> getConverter(ConverterKeyType key)
public Set<String> getFromNamespaceConverterTo(String toNamespace)
toNamespace
- Requested formatpublic boolean hasConverter(String fromNamespace, String toNamespace)
fromNamespace
- Default formattoNamespace
- Requested fromatCopyright © 2012-2015 52north.org. All Rights Reserved.