Class UriConverterRegistryImpl
java.lang.Object
ch.tocco.nice2.dms.impl.uri.converter.UriConverterRegistryImpl
- All Implemented Interfaces:
UriConverterRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConverter
(Class<? extends NiceUri> sourceClass, Class<? extends NiceUri> targetClass, UriConverter uriConverter) <S extends NiceUri,
T extends NiceUri>
UriConverter<S, T> findConverter
(Class<S> sourceClass, Class<T> targetClass) Find anUriConverter
for two types ofNiceUri
.void
removeConverter
(Class<? extends NiceUri> sourceClass, Class<? extends NiceUri> targetClass, UriConverter uriConverter) void
setUriConverters
(List<UriConverterContribution> uriConverters)
-
Constructor Details
-
UriConverterRegistryImpl
public UriConverterRegistryImpl(org.slf4j.Logger log)
-
-
Method Details
-
setUriConverters
-
addConverter
public void addConverter(Class<? extends NiceUri> sourceClass, Class<? extends NiceUri> targetClass, UriConverter uriConverter) - Specified by:
addConverter
in interfaceUriConverterRegistry
-
removeConverter
public void removeConverter(Class<? extends NiceUri> sourceClass, Class<? extends NiceUri> targetClass, UriConverter uriConverter) - Specified by:
removeConverter
in interfaceUriConverterRegistry
-
findConverter
public <S extends NiceUri,T extends NiceUri> UriConverter<S,T> findConverter(Class<S> sourceClass, Class<T> targetClass) Description copied from interface:UriConverterRegistry
Find anUriConverter
for two types ofNiceUri
.- Specified by:
findConverter
in interfaceUriConverterRegistry
- Type Parameters:
S
- The type of the source class.T
- The type of the target class.- Parameters:
sourceClass
- The source class of the converter.targetClass
- The target class of the converter.- Returns:
- an
UriConverter
for the two types.
-