Class Registrar

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware

    public class Registrar
    extends Object
    implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.EnvironmentAware
    This class helps to get all variables defined on the custom annotation side and registers them with the ConjurPropertySource class for further processing.
    • Constructor Summary

      Constructors 
      Constructor Description
      Registrar()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.core.env.Environment getEnvironment()  
      void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
      Processes the annotations data.
      void registerBeanDefinitions​(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      This method finds all variables values defined at annotation side and registers then with give bean.
      void setEnvironment​(org.springframework.core.env.Environment environment)  
      • Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar

        registerBeanDefinitions
    • Constructor Detail

      • Registrar

        public Registrar()
    • Method Detail

      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware
      • getEnvironment

        public org.springframework.core.env.Environment getEnvironment()
      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                    throws org.springframework.beans.BeansException
        Processes the annotations data.
        Specified by:
        postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • registerBeanDefinitions

        public void registerBeanDefinitions​(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
                                            org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
        This method finds all variables values defined at annotation side and registers then with give bean.
        Specified by:
        registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar