类 BeanTimeStatistics
- java.lang.Object
-
- io.microsphere.spring.context.event.BeanTimeStatistics
-
- 所有已实现的接口:
BeanListener,java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class BeanTimeStatistics extends java.lang.Object implements BeanListener, org.springframework.beans.factory.BeanNameAware
Bean Time Statistics- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
构造器概要
构造器 构造器 说明 BeanTimeStatistics()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 io.microsphere.util.StopWatchgetStopWatch()voidonAfterBeanDestroy(java.lang.String beanName, java.lang.Object bean)Handle the event after the bean destroyvoidonAfterBeanInitialized(java.lang.String beanName, java.lang.Object bean)Handle the event after the bean initializationvoidonAfterBeanInstantiated(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.Object bean)Handle the event before after the bean instantiationvoidonBeanDefinitionReady(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition)Handle the event when theBeanDefinitionis ready(merged)voidonBeanPropertyValuesReady(java.lang.String beanName, java.lang.Object bean, org.springframework.beans.PropertyValues pvs)Handle the event when the Beans'PropertyValuesis readyvoidonBeanReady(java.lang.String beanName, java.lang.Object bean)Handle the event on the bean readyvoidonBeforeBeanDestroy(java.lang.String beanName, java.lang.Object bean)Handle the event before the bean destroyvoidonBeforeBeanInitialize(java.lang.String beanName, java.lang.Object bean)Handle the event before the bean initializationvoidonBeforeBeanInstantiate(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition)Handle the event before the bean instantiationvoidonBeforeBeanInstantiate(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.Object factoryBean, java.lang.reflect.Method factoryMethod, java.lang.Object[] args)Handle the event before the bean instantiation using the factory methodvoidonBeforeBeanInstantiate(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.reflect.Constructor<?> constructor, java.lang.Object[] args)Handle the event before the bean instantiation using theconstructorvoidsetBeanName(java.lang.String name)booleansupports(java.lang.String beanName)Supports the bean to be listened or notjava.lang.StringtoString()
-
-
-
方法详细资料
-
supports
public boolean supports(java.lang.String beanName)
从接口复制的说明:BeanListenerSupports the bean to be listened or not- 指定者:
supports在接口中BeanListener- 参数:
beanName- the name of bean- 返回:
- If
false, any method of bean lifecycle will not be called
-
onBeanDefinitionReady
public void onBeanDefinitionReady(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition)从接口复制的说明:BeanListenerHandle the event when theBeanDefinitionis ready(merged)- 指定者:
onBeanDefinitionReady在接口中BeanListener- 参数:
beanName- the bean namemergedBeanDefinition- the mergedBeanDefinition
-
onBeforeBeanInstantiate
public void onBeforeBeanInstantiate(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition)从接口复制的说明:BeanListenerHandle the event before the bean instantiation- 指定者:
onBeforeBeanInstantiate在接口中BeanListener- 参数:
beanName- the bean namemergedBeanDefinition- the mergedBeanDefinition
-
onBeforeBeanInstantiate
public void onBeforeBeanInstantiate(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.reflect.Constructor<?> constructor, java.lang.Object[] args)从接口复制的说明:BeanListenerHandle the event before the bean instantiation using theconstructor- 指定者:
onBeforeBeanInstantiate在接口中BeanListener- 参数:
beanName- the bean namemergedBeanDefinition- the mergedBeanDefinitionconstructor- theconstructorfor bean instantiationargs- the arguments ofconstructor
-
onBeforeBeanInstantiate
public void onBeforeBeanInstantiate(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.Object factoryBean, java.lang.reflect.Method factoryMethod, java.lang.Object[] args)从接口复制的说明:BeanListenerHandle the event before the bean instantiation using the factory method- 指定者:
onBeforeBeanInstantiate在接口中BeanListener- 参数:
beanName- the bean namemergedBeanDefinition- the mergedBeanDefinitionfactoryBean- the factory bean(optional)factoryMethod- the factoryMethodfor bean instantiation
-
onAfterBeanInstantiated
public void onAfterBeanInstantiated(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.Object bean)从接口复制的说明:BeanListenerHandle the event before after the bean instantiation- 指定者:
onAfterBeanInstantiated在接口中BeanListener- 参数:
beanName- the bean namemergedBeanDefinition- the mergedBeanDefinitionbean- the bean has been instantiated, not initialized yet
-
onBeanPropertyValuesReady
public void onBeanPropertyValuesReady(java.lang.String beanName, java.lang.Object bean, org.springframework.beans.PropertyValues pvs)从接口复制的说明:BeanListenerHandle the event when the Beans'PropertyValuesis ready- 指定者:
onBeanPropertyValuesReady在接口中BeanListener- 参数:
beanName- the bean namebean- the bean has been instantiated, not initialized yetpvs- thePropertyValueswill be applied on bean
-
onBeforeBeanInitialize
public void onBeforeBeanInitialize(java.lang.String beanName, java.lang.Object bean)从接口复制的说明:BeanListenerHandle the event before the bean initialization- 指定者:
onBeforeBeanInitialize在接口中BeanListener- 参数:
beanName- the bean namebean- the bean is not initialized yet
-
onAfterBeanInitialized
public void onAfterBeanInitialized(java.lang.String beanName, java.lang.Object bean)从接口复制的说明:BeanListenerHandle the event after the bean initialization- 指定者:
onAfterBeanInitialized在接口中BeanListener- 参数:
beanName- the bean namebean- the bean has been initialized
-
onBeanReady
public void onBeanReady(java.lang.String beanName, java.lang.Object bean)从接口复制的说明:BeanListenerHandle the event on the bean ready- 指定者:
onBeanReady在接口中BeanListener- 参数:
beanName- the bean namebean- the bean is prepared
-
onBeforeBeanDestroy
public void onBeforeBeanDestroy(java.lang.String beanName, java.lang.Object bean)从接口复制的说明:BeanListenerHandle the event before the bean destroy- 指定者:
onBeforeBeanDestroy在接口中BeanListener- 参数:
beanName- the bean namebean- the bean is to be destroyed
-
onAfterBeanDestroy
public void onAfterBeanDestroy(java.lang.String beanName, java.lang.Object bean)从接口复制的说明:BeanListenerHandle the event after the bean destroy- 指定者:
onAfterBeanDestroy在接口中BeanListener- 参数:
beanName- the bean namebean- the bean is destroyed
-
getStopWatch
public io.microsphere.util.StopWatch getStopWatch()
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
setBeanName
public void setBeanName(java.lang.String name)
- 指定者:
setBeanName在接口中org.springframework.beans.factory.BeanNameAware
-
-