Package grails.boot.config
Class GrailsApplicationPostProcessor
- java.lang.Object
-
- grails.boot.config.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.OrderedABeanDefinitionRegistryPostProcessorthat enhances any ApplicationContext with plugin manager capabilities- Since:
- 3.0
- See Also:
GrailsApplicationEventListener
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContextapplicationContextstatic java.lang.StringBEAN_NAMEprotected java.util.Set<java.lang.Class<?>>classesprotected grails.core.GrailsApplicationgrailsApplicationprotected GrailsApplicationEventListenergrailsApplicationEventListenerprotected grails.core.GrailsApplicationLifeCyclelifeCycleprotected booleanloadExternalBeansprotected org.slf4j.Loggerlogprotected grails.plugins.GrailsPluginManagerpluginManagerprotected booleanreloadingEnabled
-
Constructor Summary
Constructors Constructor Description GrailsApplicationPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcustomizeGrailsApplication(grails.core.GrailsApplication grailsApplication)protected voidcustomizePluginManager(grails.plugins.GrailsPluginManager grailsPluginManager)intgetOrder()protected voidinitializeGrailsApplication(org.springframework.context.ApplicationContext applicationContext)protected voidloadApplicationConfig()protected java.util.Set<java.lang.Class<?>>loadArtefactClasses()protected voidperformGrailsInitializationSequence()voidpostProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetApplicationStartup(org.springframework.core.metrics.ApplicationStartup applicationStartup)voidsetGrailsApplicationLifeCycle(grails.core.GrailsApplicationLifeCycle lifeCycle)voidsetLoadExternalBeans(boolean loadExternalBeans)
-
-
-
Field Detail
-
BEAN_NAME
public static final java.lang.String BEAN_NAME
- See Also:
- Constant Field Values
-
log
protected final org.slf4j.Logger log
-
grailsApplication
protected final grails.core.GrailsApplication grailsApplication
-
pluginManager
protected final grails.plugins.GrailsPluginManager pluginManager
-
grailsApplicationEventListener
protected final GrailsApplicationEventListener grailsApplicationEventListener
-
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
-
-
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:
setApplicationContextin interfaceorg.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:
postProcessBeanDefinitionRegistryin interfaceorg.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:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-
setApplicationStartup
public void setApplicationStartup(org.springframework.core.metrics.ApplicationStartup applicationStartup)
- Specified by:
setApplicationStartupin interfaceorg.springframework.context.ApplicationStartupAware
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
-