public class UriToEntityConverter extends Object implements ConditionalGenericConverter
GenericConverter that can convert a URI into an entity.GenericConverter.ConvertiblePair| Constructor and Description |
|---|
UriToEntityConverter(PersistentEntities entities,
RepositoryInvokerFactory invokerFactory,
Repositories repositories)
Creates a new
UriToEntityConverter using the given PersistentEntities,
RepositoryInvokerFactory and Repositories. |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType) |
Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
boolean |
matches(TypeDescriptor sourceType,
TypeDescriptor targetType) |
public UriToEntityConverter(PersistentEntities entities, RepositoryInvokerFactory invokerFactory, 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(TypeDescriptor sourceType, TypeDescriptor targetType)
matches in interface ConditionalConverterpublic Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes in interface GenericConverterpublic Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert in interface GenericConverterCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.