Class UriConverterRegistryImpl
java.lang.Object
ch.tocco.nice2.dms.impl.uri.converter.UriConverterRegistryImpl
- All Implemented Interfaces:
UriConverterRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConverter(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 anUriConverterfor two types ofNiceUri.voidremoveConverter(Class<? extends NiceUri> sourceClass, Class<? extends NiceUri> targetClass, UriConverter uriConverter) voidsetUriConverters(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:
addConverterin interfaceUriConverterRegistry
-
removeConverter
public void removeConverter(Class<? extends NiceUri> sourceClass, Class<? extends NiceUri> targetClass, UriConverter uriConverter) - Specified by:
removeConverterin interfaceUriConverterRegistry
-
findConverter
public <S extends NiceUri, T extends NiceUri> UriConverter<S,T> findConverter(Class<S> sourceClass, Class<T> targetClass) Description copied from interface:UriConverterRegistryFind anUriConverterfor two types ofNiceUri.- Specified by:
findConverterin 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
UriConverterfor the two types.
-