Package org.dspace.servicemanager.spring
Class DSpaceBeanPostProcessor
- java.lang.Object
-
- org.dspace.servicemanager.spring.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 Summary
Constructors Constructor Description DSpaceBeanPostProcessor(DSpaceConfigurationService configurationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
postProcessAfterInitialization(Object bean, String beanName)
void
postProcessBeforeDestruction(Object bean, String beanName)
Object
postProcessBeforeInitialization(Object bean, String beanName)
boolean
requiresDestruction(Object arg0)
-
-
-
Constructor Detail
-
DSpaceBeanPostProcessor
@Autowired public DSpaceBeanPostProcessor(DSpaceConfigurationService configurationService)
-
-
Method Detail
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInitialization
in interfaceorg.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 interfaceorg.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 interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-
requiresDestruction
public boolean requiresDestruction(Object arg0)
- Specified by:
requiresDestruction
in interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
-
-