类 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
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      io.microsphere.util.StopWatch getStopWatch()  
      void onAfterBeanDestroy​(java.lang.String beanName, java.lang.Object bean)
      Handle the event after the bean destroy
      void onAfterBeanInitialized​(java.lang.String beanName, java.lang.Object bean)
      Handle the event after the bean initialization
      void onAfterBeanInstantiated​(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition, java.lang.Object bean)
      Handle the event before after the bean instantiation
      void onBeanDefinitionReady​(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition)
      Handle the event when the BeanDefinition 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 ready
      void onBeanReady​(java.lang.String beanName, java.lang.Object bean)
      Handle the event on the bean ready
      void onBeforeBeanDestroy​(java.lang.String beanName, java.lang.Object bean)
      Handle the event before the bean destroy
      void onBeforeBeanInitialize​(java.lang.String beanName, java.lang.Object bean)
      Handle the event before the bean initialization
      void onBeforeBeanInstantiate​(java.lang.String beanName, org.springframework.beans.factory.support.RootBeanDefinition mergedBeanDefinition)
      Handle the event before the bean instantiation
      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)
      Handle the event before the bean instantiation using the factory method
      void 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 the constructor
      void setBeanName​(java.lang.String name)  
      boolean supports​(java.lang.String beanName)
      Supports the bean to be listened or not
      java.lang.String toString()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • BeanTimeStatistics

        public BeanTimeStatistics()
    • 方法详细资料

      • 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 the BeanDefinition is ready(merged)
        指定者:
        onBeanDefinitionReady 在接口中 BeanListener
        参数:
        beanName - the bean name
        mergedBeanDefinition - the merged BeanDefinition
      • 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 name
        mergedBeanDefinition - the merged BeanDefinition
      • 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 the constructor
        指定者:
        onBeforeBeanInstantiate 在接口中 BeanListener
        参数:
        beanName - the bean name
        mergedBeanDefinition - the merged BeanDefinition
        constructor - the constructor for bean instantiation
        args - the arguments of constructor
      • 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 name
        mergedBeanDefinition - the merged BeanDefinition
        factoryBean - the factory bean(optional)
        factoryMethod - the factory Method 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 name
        mergedBeanDefinition - the merged BeanDefinition
        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 name
        bean - the bean has been instantiated, not initialized yet
        pvs - the PropertyValues 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 name
        bean - 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 name
        bean - 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 name
        bean - 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 name
        bean - 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 name
        bean - 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