Class GrailsApplicationPostProcessor

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationStartupAware, org.springframework.core.Ordered

    public class GrailsApplicationPostProcessor
    extends java.lang.Object
    implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationStartupAware, org.springframework.core.Ordered
    A BeanDefinitionRegistryPostProcessor that enhances any ApplicationContext with plugin manager capabilities
    Since:
    3.0
    See Also:
    GrailsApplicationEventListener
    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • grailsApplication

        protected final grails.core.GrailsApplication grailsApplication
      • pluginManager

        protected final grails.plugins.GrailsPluginManager pluginManager
      • applicationContext

        protected org.springframework.context.ApplicationContext applicationContext
      • lifeCycle

        protected grails.core.GrailsApplicationLifeCycle lifeCycle
      • classes

        protected java.util.Set<java.lang.Class<?>> classes
      • loadExternalBeans

        protected boolean loadExternalBeans
      • reloadingEnabled

        protected boolean reloadingEnabled
    • Constructor Detail

      • GrailsApplicationPostProcessor

        public GrailsApplicationPostProcessor()
    • Method Detail

      • setGrailsApplicationLifeCycle

        public void setGrailsApplicationLifeCycle​(grails.core.GrailsApplicationLifeCycle lifeCycle)
      • setLoadExternalBeans

        public void setLoadExternalBeans​(boolean loadExternalBeans)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • initializeGrailsApplication

        protected final void initializeGrailsApplication​(org.springframework.context.ApplicationContext applicationContext)
      • customizePluginManager

        protected void customizePluginManager​(grails.plugins.GrailsPluginManager grailsPluginManager)
      • customizeGrailsApplication

        protected void customizeGrailsApplication​(grails.core.GrailsApplication grailsApplication)
      • performGrailsInitializationSequence

        protected void performGrailsInitializationSequence()
      • loadArtefactClasses

        protected java.util.Set<java.lang.Class<?>> loadArtefactClasses()
      • loadApplicationConfig

        protected void loadApplicationConfig()
      • postProcessBeanDefinitionRegistry

        public void postProcessBeanDefinitionRegistry​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
                                               throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeanDefinitionRegistry in interface org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                    throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • setApplicationStartup

        public void setApplicationStartup​(org.springframework.core.metrics.ApplicationStartup applicationStartup)
        Specified by:
        setApplicationStartup in interface org.springframework.context.ApplicationStartupAware
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered