Class BeanCreationProfilingPostProcessor

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

    public class BeanCreationProfilingPostProcessor
    extends java.lang.Object
    implements org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    Adds timings of bean creation times logged to the "org.grails.startup" group
    Since:
    3.0.12
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)  
      java.lang.Object postProcessAfterInitialization​(java.lang.Object bean, java.lang.String beanName)  
      boolean postProcessAfterInstantiation​(java.lang.Object bean, java.lang.String beanName)  
      java.lang.Object postProcessBeforeInitialization​(java.lang.Object bean, java.lang.String beanName)  
      java.lang.Object postProcessBeforeInstantiation​(java.lang.Class<?> beanClass, java.lang.String beanName)  
      org.springframework.beans.PropertyValues postProcessPropertyValues​(org.springframework.beans.PropertyValues pvs, java.beans.PropertyDescriptor[] pds, java.lang.Object bean, java.lang.String beanName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor

        postProcessProperties
    • Constructor Detail

      • BeanCreationProfilingPostProcessor

        public BeanCreationProfilingPostProcessor()
    • Method Detail

      • postProcessBeforeInstantiation

        public java.lang.Object postProcessBeforeInstantiation​(java.lang.Class<?> beanClass,
                                                               java.lang.String beanName)
                                                        throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeforeInstantiation in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • postProcessAfterInstantiation

        public boolean postProcessAfterInstantiation​(java.lang.Object bean,
                                                     java.lang.String beanName)
                                              throws org.springframework.beans.BeansException
        Specified by:
        postProcessAfterInstantiation in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • postProcessPropertyValues

        public org.springframework.beans.PropertyValues postProcessPropertyValues​(org.springframework.beans.PropertyValues pvs,
                                                                                  java.beans.PropertyDescriptor[] pds,
                                                                                  java.lang.Object bean,
                                                                                  java.lang.String beanName)
                                                                           throws org.springframework.beans.BeansException
        Specified by:
        postProcessPropertyValues in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • postProcessBeforeInitialization

        public java.lang.Object postProcessBeforeInitialization​(java.lang.Object bean,
                                                                java.lang.String beanName)
                                                         throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • postProcessAfterInitialization

        public java.lang.Object postProcessAfterInitialization​(java.lang.Object bean,
                                                               java.lang.String beanName)
                                                        throws org.springframework.beans.BeansException
        Specified by:
        postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>