Class ProjectionDefinitionRegistar
java.lang.Object
org.springframework.data.rest.webmvc.config.ProjectionDefinitionRegistar
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
,org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
,org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
public class ProjectionDefinitionRegistar
extends Object
implements org.springframework.beans.factory.config.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
ConstructorDescriptionProjectionDefinitionRegistar
(org.springframework.beans.factory.ObjectFactory<RepositoryRestConfiguration> config) Creates 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
public ProjectionDefinitionRegistar(org.springframework.beans.factory.ObjectFactory<RepositoryRestConfiguration> config) Creates a newProjectionDefinitionRegistar
for the givenRepositoryRestConfiguration
.- Parameters:
config
- must not be null.
-
-
Method Details
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-