Package ubic.gemma.core.util
Class BeanInitializationTimeMonitor
- java.lang.Object
-
- ubic.gemma.core.util.BeanInitializationTimeMonitor
-
- All Implemented Interfaces:
EventListener
,BeanPostProcessor
,ApplicationListener<ContextRefreshedEvent>
,Ordered
@Component public class BeanInitializationTimeMonitor extends Object implements BeanPostProcessor, Ordered, ApplicationListener<ContextRefreshedEvent>
Hook into the bean post-processing lifecycle and report the worst offenders.- Author:
- poirigui
-
-
Field Summary
-
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
-
Constructor Summary
Constructors Constructor Description BeanInitializationTimeMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent)
Object
postProcessAfterInitialization(Object bean, String beanName)
Object
postProcessBeforeInitialization(Object bean, String beanName)
-
-
-
Method Detail
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException
- Specified by:
postProcessBeforeInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException
- Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
onApplicationEvent
public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent)
- Specified by:
onApplicationEvent
in interfaceApplicationListener<ContextRefreshedEvent>
-
-