public class UriToEntityConverter extends Object implements org.springframework.core.convert.converter.ConditionalGenericConverter
GenericConverter that can convert a URI into an entity.| Constructor and Description |
|---|
UriToEntityConverter(org.springframework.data.mapping.context.PersistentEntities entities,
org.springframework.data.repository.support.RepositoryInvokerFactory invokerFactory,
org.springframework.data.repository.support.Repositories repositories)
Creates a new
UriToEntityConverter using the given PersistentEntities,
RepositoryInvokerFactory and Repositories. |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object source,
org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
boolean |
matches(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
public UriToEntityConverter(org.springframework.data.mapping.context.PersistentEntities entities,
org.springframework.data.repository.support.RepositoryInvokerFactory invokerFactory,
org.springframework.data.repository.support.Repositories repositories)
UriToEntityConverter using the given PersistentEntities,
RepositoryInvokerFactory and Repositories.entities - must not be null.invokerFactory - must not be null.repositories - must not be null.public boolean matches(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType)
matches in interface org.springframework.core.convert.converter.ConditionalConverterpublic Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes in interface org.springframework.core.convert.converter.GenericConverterCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.