Package de.fraunhofer.iese.mydata.pep
Class PepServiceBeanDefinitionRegistryPostProcessor
java.lang.Object
de.fraunhofer.iese.mydata.pep.PepServiceBeanDefinitionRegistryPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
public class PepServiceBeanDefinitionRegistryPostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
PostProcessor that creates and adds a BeanDefinition for each Interface that is
annotated with
PepInterfaceDescription.
Like Spring Data Repository scanning this PostProcessor scans all the packages that are defined by
EnablePolicyEnforcementPoint.basePackages() or
EnablePolicyEnforcementPoint.basePackageClasses(). For each interface
found it creates an BeanDefinition. The Name of the interface is assigned as its bean-name. As
the interface has no implementing the beanfactory and factorymethod are set
at the BeanDefintion.
PepBeanFactory for information about how the bean is created.-
Constructor Summary
ConstructorsConstructorDescriptionPepServiceBeanDefinitionRegistryPostProcessor(PepCandidateComponentProvider pepCandidateComponentProvider) Constructor adds Anntoationfilter to the scanner which is reponsible to find all Interfaces withPepServiceDescription. -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory) Starting Point for Postprocessing see class level documentation.
-
Constructor Details
-
PepServiceBeanDefinitionRegistryPostProcessor
public PepServiceBeanDefinitionRegistryPostProcessor(PepCandidateComponentProvider pepCandidateComponentProvider) Constructor adds Anntoationfilter to the scanner which is reponsible to find all Interfaces withPepServiceDescription.
-
-
Method Details
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory) Starting Point for Postprocessing see class level documentation.- Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Parameters:
configurableListableBeanFactory-- Throws:
org.springframework.beans.BeansException- See Also:
-
BeanFactoryPostProcessor.postProcessBeanFactory(ConfigurableListableBeanFactory)
-