Class ProjectionDefinitionRegistar
java.lang.Object
org.springframework.data.rest.webmvc.config.ProjectionDefinitionRegistar
- All Implemented Interfaces:
BeanPostProcessor
,InstantiationAwareBeanPostProcessor
,SmartInstantiationAwareBeanPostProcessor
public class ProjectionDefinitionRegistar
extends Object
implements SmartInstantiationAwareBeanPostProcessor
BeanPostProcessor
to make sure all excerpt projections defined in RepositoryResourceMappings
are
registered with the RepositoryRestConfiguration
. This rather external configuration has been used to make
sure we don't introduce a cyclic dependency between RepositoryRestConfiguration
an
RepositoryResourceMappings
as the latter need access to the former to discover mappings in the first place.- Since:
- 2.5
- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorDescriptionCreates a newProjectionDefinitionRegistar
for the givenRepositoryRestConfiguration
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
Methods inherited from interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessProperties
Methods inherited from interface org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
determineBeanType, determineCandidateConstructors, getEarlyBeanReference, predictBeanType
-
Constructor Details
-
ProjectionDefinitionRegistar
Creates a newProjectionDefinitionRegistar
for the givenRepositoryRestConfiguration
.- Parameters:
config
- must not be null.
-
-
Method Details
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-