Class PersistentEntitiesBindContextFactory
java.lang.Object
org.springframework.data.rest.webmvc.json.PersistentEntitiesBindContextFactory
- All Implemented Interfaces:
BindContextFactory
A
BindContextFactory based on PersistentEntities.- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentEntitiesBindContextFactory(org.springframework.data.mapping.context.PersistentEntities entities, org.springframework.core.convert.ConversionService conversionService) Creates a newPersistentEntitiesBindContextFactoryfor the givenPersistentEntities. -
Method Summary
Modifier and TypeMethodDescriptiongetBindContextFor(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates aBindContextfor the givenObjectMapper.
-
Constructor Details
-
PersistentEntitiesBindContextFactory
public PersistentEntitiesBindContextFactory(org.springframework.data.mapping.context.PersistentEntities entities, org.springframework.core.convert.ConversionService conversionService) Creates a newPersistentEntitiesBindContextFactoryfor the givenPersistentEntities.- Parameters:
entities- must not be null.
-
-
Method Details
-
getBindContextFor
Description copied from interface:BindContextFactoryCreates aBindContextfor the givenObjectMapper.- Specified by:
getBindContextForin interfaceBindContextFactory- Parameters:
mapper- must not be null.- Returns:
- will never be null.
-