Class DSpaceBeanPostProcessor

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

    public final class DSpaceBeanPostProcessor
    extends Object
    implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
    This processes beans as they are loaded into the system by spring. Allows us to handle the init method and also push config options.
    Author:
    Aaron Zeckoski (azeckoski @ gmail.com)
    • Constructor Detail

    • Method Detail

      • postProcessBeforeInitialization

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

        public Object postProcessAfterInitialization​(Object bean,
                                                     String beanName)
                                              throws org.springframework.beans.BeansException
        Specified by:
        postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • postProcessBeforeDestruction

        public void postProcessBeforeDestruction​(Object bean,
                                                 String beanName)
                                          throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeforeDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • requiresDestruction

        public boolean requiresDestruction​(Object arg0)
        Specified by:
        requiresDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor