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 withPepInterfaceDescription
.Like Spring Data Repository scanning this PostProcessor scans all the packages that are defined by
SeeEnablePolicyEnforcementPoint.basePackages()
orEnablePolicyEnforcementPoint.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
Constructors Constructor Description PepServiceBeanDefinitionRegistryPostProcessor(PepCandidateComponentProvider pepCandidateComponentProvider)
Constructor adds Anntoationfilter to the scanner which is reponsible to find all Interfaces withPepServiceDescription
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory)
Starting Point for Postprocessing see class level documentation.
-
-
-
Constructor Detail
-
PepServiceBeanDefinitionRegistryPostProcessor
public PepServiceBeanDefinitionRegistryPostProcessor(PepCandidateComponentProvider pepCandidateComponentProvider)
Constructor adds Anntoationfilter to the scanner which is reponsible to find all Interfaces withPepServiceDescription
.
-
-
Method Detail
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory)
Starting Point for Postprocessing see class level documentation.- Specified by:
postProcessBeanFactory
in interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
- Parameters:
configurableListableBeanFactory
-- Throws:
org.springframework.beans.BeansException
- See Also:
BeanFactoryPostProcessor.postProcessBeanFactory(ConfigurableListableBeanFactory)
-
-