Class SpringSingleVerticleConfiguration

  • All Implemented Interfaces:
    org.springframework.beans.factory.config.BeanFactoryPostProcessor

    public class SpringSingleVerticleConfiguration
    extends Object
    implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
    Removes all Spring verticles except the one that has been started. This should avoid missconfigurations because all other spring verticles in the context are not started as a verticle. Each spring verticle creates his own spring context and must be deployed on it's own. Created by Andy Moncsek on 12.03.14.
    Author:
    Andy Moncsek
    • Constructor Detail

      • SpringSingleVerticleConfiguration

        public SpringSingleVerticleConfiguration​(Class<?> currentSpringVerticleClass)
    • 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
        Throws:
        org.springframework.beans.BeansException