@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class GrailsApplicationPostProcessor extends java.lang.Object implements ApplicationContextAware, ApplicationListener<ApplicationContextEvent>, BeanDefinitionRegistryPostProcessor
A BeanDefinitionRegistryPostProcessor that enhances any ApplicationContext with plugin manager capabilities
| Modifiers | Name | Description |
|---|---|---|
class |
GrailsApplicationPostProcessor.1 |
|
class |
GrailsApplicationPostProcessor.2 |
|
class |
GrailsApplicationPostProcessor.3 |
| Modifiers | Name | Description |
|---|---|---|
protected ApplicationContext |
applicationContext |
|
protected GrailsPluginManager |
pluginManager |
| Type | Name and description |
|---|---|
static boolean |
RELOADING_ENABLED |
GrailsApplicationClass |
applicationClass |
java.lang.Class[] |
classes |
GrailsApplication |
grailsApplication |
GrailsApplicationLifeCycle |
lifeCycle |
boolean |
loadExternalBeans |
boolean |
reloadingEnabled |
| Constructor and description |
|---|
GrailsApplicationPostProcessor(GrailsApplicationLifeCycle lifeCycle, ApplicationContext applicationContext, PluginDiscovery pluginDiscovery, java.lang.Class[] classes) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
customizeGrailsApplication(GrailsApplication grailsApplication) |
|
protected final void |
initializeGrailsApplication(ApplicationContext applicationContext) |
|
protected void |
loadApplicationConfig()Registers conversion service converters and creates the PropertySourcesConfig that backs grailsApplication.config. |
|
void |
onApplicationEvent(ApplicationContextEvent event) |
|
protected void |
performGrailsInitializationSequence() |
|
void |
postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) |
|
void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
|
void |
setApplicationContext(ApplicationContext applicationContext) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Registers conversion service converters and creates the PropertySourcesConfig
that backs grailsApplication.config.
Plugin configurations are loaded early by GrailsEnvironmentPostProcessor and are already present in the environment's property sources by the time this method runs. This method simply creates the PropertySourcesConfig from whatever property sources exist in the environment.