Class PentahoBeanScopeValidatorPostProcessor

  • All Implemented Interfaces:

    public class PentahoBeanScopeValidatorPostProcessor
    extends Object
    implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
    To maintain legacy compatibility, upon BeanFactory init we'll traverse through all beans in its containing factoryMap and for each that holds an empty scope definition we'll set it with a BeanDefinition.SCOPE_SINGLETON


    in previous spring framework 2.5.6 any non-explicit bean scope declaration would be set with default a value of BeanDefinition.SCOPE_SINGLETON;

    in latest spring framework 3.2.14 the scope is set with an empty string; the scope checking should now be done using the isSingleton() predicate, whose value is set to 'true' when scope is either set as 'singleton' or empty string

    • Constructor Detail

      • PentahoBeanScopeValidatorPostProcessor

        public PentahoBeanScopeValidatorPostProcessor()
    • Method Detail

      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                    throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
      • validateBeanScope

        protected void validateBeanScope​(String beanName,
                                         org.springframework.beans.factory.config.BeanDefinition bd)