类 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.StopWatch
getStopWatch()
void
onAfterBeanDestroy(java.lang.String beanName, java.lang.Object bean)
Handle the event after the bean destroyvoid
onAfterBeanInitialized(java.lang.String beanName, java.lang.Object bean)
Handle the event after the bean initializationvoid
onAfterBeanInstantiated(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.Object bean)
Handle the event before after the bean instantiationvoid
onBeanDefinitionReady(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition)
Handle the event when theBeanDefinition
is ready(merged)void
onBeanPropertyValuesReady(java.lang.String beanName, java.lang.Object bean, org.springframework.beans.PropertyValues pvs)
Handle the event when the Beans'PropertyValues
is readyvoid
onBeanReady(java.lang.String beanName, java.lang.Object bean)
Handle the event on the bean readyvoid
onBeforeBeanDestroy(java.lang.String beanName, java.lang.Object bean)
Handle the event before the bean destroyvoid
onBeforeBeanInitialize(java.lang.String beanName, java.lang.Object bean)
Handle the event before the bean initializationvoid
onBeforeBeanInstantiate(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition)
Handle the event before the bean instantiationvoid
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)
Handle the event before the bean instantiation using the factory methodvoid
onBeforeBeanInstantiate(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 theconstructor
void
setBeanName(java.lang.String name)
boolean
supports(java.lang.String beanName)
Supports the bean to be listened or notjava.lang.String
toString()
-
-
-
方法详细资料
-
supports
public boolean supports(java.lang.String beanName)
从接口复制的说明:BeanListener
Supports 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)
从接口复制的说明:BeanListener
Handle the event when theBeanDefinition
is 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)
从接口复制的说明:BeanListener
Handle 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)
从接口复制的说明:BeanListener
Handle the event before the bean instantiation using theconstructor
- 指定者:
onBeforeBeanInstantiate
在接口中BeanListener
- 参数:
beanName
- the bean namemergedBeanDefinition
- the mergedBeanDefinition
constructor
- theconstructor
for 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)
从接口复制的说明:BeanListener
Handle the event before the bean instantiation using the factory method- 指定者:
onBeforeBeanInstantiate
在接口中BeanListener
- 参数:
beanName
- the bean namemergedBeanDefinition
- the mergedBeanDefinition
factoryBean
- the factory bean(optional)factoryMethod
- the factoryMethod
for bean instantiation
-
onAfterBeanInstantiated
public void onAfterBeanInstantiated(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.Object bean)
从接口复制的说明:BeanListener
Handle the event before after the bean instantiation- 指定者:
onAfterBeanInstantiated
在接口中BeanListener
- 参数:
beanName
- the bean namemergedBeanDefinition
- the mergedBeanDefinition
bean
- 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)
从接口复制的说明:BeanListener
Handle the event when the Beans'PropertyValues
is ready- 指定者:
onBeanPropertyValuesReady
在接口中BeanListener
- 参数:
beanName
- the bean namebean
- the bean has been instantiated, not initialized yetpvs
- thePropertyValues
will be applied on bean
-
onBeforeBeanInitialize
public void onBeforeBeanInitialize(java.lang.String beanName, java.lang.Object bean)
从接口复制的说明:BeanListener
Handle 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)
从接口复制的说明:BeanListener
Handle 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)
从接口复制的说明:BeanListener
Handle 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)
从接口复制的说明:BeanListener
Handle 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)
从接口复制的说明:BeanListener
Handle 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
-
-