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
ConstructorDescriptionPersistentEntitiesBindContextFactory
(org.springframework.data.mapping.context.PersistentEntities entities, org.springframework.core.convert.ConversionService conversionService) Creates a newPersistentEntitiesBindContextFactory
for the givenPersistentEntities
. -
Method Summary
Modifier and TypeMethodDescriptiongetBindContextFor
(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates aBindContext
for the givenObjectMapper
.
-
Constructor Details
-
PersistentEntitiesBindContextFactory
public PersistentEntitiesBindContextFactory(org.springframework.data.mapping.context.PersistentEntities entities, org.springframework.core.convert.ConversionService conversionService) Creates a newPersistentEntitiesBindContextFactory
for the givenPersistentEntities
.- Parameters:
entities
- must not be null.
-
-
Method Details
-
getBindContextFor
Description copied from interface:BindContextFactory
Creates aBindContext
for the givenObjectMapper
.- Specified by:
getBindContextFor
in interfaceBindContextFactory
- Parameters:
mapper
- must not be null.- Returns:
- will never be null.
-