Class BatchPropertyBeanPostProcessor

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor

    public class BatchPropertyBeanPostProcessor
    extends java.lang.Object
    implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.BeanFactoryAware

    BeanPostProcessor implementation used to inject JSR-352 String properties into batch artifact fields that are marked with the BatchProperty annotation.

    Since:
    3.0
    Author:
    Chris Schaefer, Michael Minella
    • Constructor Detail

      • BatchPropertyBeanPostProcessor

        public BatchPropertyBeanPostProcessor()
    • Method Detail

      • postProcessBeforeInitialization

        public java.lang.Object postProcessBeforeInitialization​(java.lang.Object artifact,
                                                                java.lang.String artifactName)
                                                         throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • postProcessAfterInitialization

        public java.lang.Object postProcessAfterInitialization​(java.lang.Object artifact,
                                                               java.lang.String artifactName)
                                                        throws org.springframework.beans.BeansException
        Specified by:
        postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException
      • setBatchPropertyContext

        @Autowired
        public void setBatchPropertyContext​(BatchPropertyContext batchPropertyContext)