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
ConstructorsConstructorDescriptionCreates a newProjectionDefinitionRegistarfor the givenRepositoryRestConfiguration. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitializationMethods inherited from interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessPropertiesMethods inherited from interface org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
determineBeanType, determineCandidateConstructors, getEarlyBeanReference, predictBeanType
-
Constructor Details
-
ProjectionDefinitionRegistar
Creates a newProjectionDefinitionRegistarfor the givenRepositoryRestConfiguration.- Parameters:
config- must not be null.
-
-
Method Details
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-