org.springframework.boot.jta.bitronix

Class BitronixDependentBeanFactoryPostProcessor

  • java.lang.Object
    • org.springframework.boot.jta.bitronix.BitronixDependentBeanFactoryPostProcessor
  • All Implemented Interfaces:
    org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered


    public class BitronixDependentBeanFactoryPostProcessor
    extends Object
    implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered
    BeanFactoryPostProcessor to automatically register the recommended dependencies for correct Bitronix shutdown ordering. With Bitronix it appears that ConnectionFactory and DataSource beans must be shutdown before the TransactionManager.
    Since:
    1.2.0
    Author:
    Phillip Webb
    • Constructor Detail

      • BitronixDependentBeanFactoryPostProcessor

        public BitronixDependentBeanFactoryPostProcessor()
    • 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
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • setOrder

        public void setOrder(int order)

Copyright © 2014 Pivotal Software, Inc.. All rights reserved.