public class UriToEntityConverter extends Object implements ConditionalGenericConverter
GenericConverter
that can convert a URI
into an entity.GenericConverter.ConvertiblePair
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,
TypeDescriptor sourceType,
TypeDescriptor targetType) |
Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
boolean |
matches(TypeDescriptor sourceType,
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(TypeDescriptor sourceType, TypeDescriptor targetType)
matches
in interface ConditionalConverter
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes
in interface GenericConverter
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert
in interface GenericConverter
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.