Package ubic.gemma.core.logging.log4j
Class TaskExecutorThreadContextInheritPostProcessor
java.lang.Object
ubic.gemma.core.logging.log4j.TaskExecutorThreadContextInheritPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class TaskExecutorThreadContextInheritPostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor
Post-process
TaskExecutor
, AsyncTaskExecutor
and SchedulingTaskExecutor
such that they
inherit the ThreadContext
of their callers.- Author:
- poirigui
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization
(Object bean, String beanName) postProcessBeforeInitialization
(Object bean, String beanName)
-
Constructor Details
-
TaskExecutorThreadContextInheritPostProcessor
public TaskExecutorThreadContextInheritPostProcessor()
-
-
Method Details
-
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
-