public class GrailsApplicationContext
extends org.springframework.context.support.GenericApplicationContext
implements groovy.lang.GroovyObject
| Modifier and Type | Field and Description |
|---|---|
protected groovy.lang.MetaClass |
metaClass |
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAMECONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME| Constructor and Description |
|---|
GrailsApplicationContext() |
GrailsApplicationContext(org.springframework.context.ApplicationContext parent) |
GrailsApplicationContext(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory) |
GrailsApplicationContext(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory,
org.springframework.context.ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertBeanFactoryActive() |
boolean |
containsBeanDefinition(java.lang.String beanName) |
groovy.lang.MetaClass |
getMetaClass() |
java.lang.Object |
getProperty(java.lang.String property) |
org.springframework.ui.context.Theme |
getTheme(java.lang.String themeName) |
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args) |
protected void |
onRefresh()
Initialize the theme capability.
|
protected void |
prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
registerPrototype(java.lang.String name,
java.lang.Class<?> clazz)
Register a prototype bean with the underlying bean factory.
|
void |
registerPrototype(java.lang.String name,
java.lang.Class<?> clazz,
org.springframework.beans.MutablePropertyValues pvs)
Register a prototype bean with the underlying bean factory.
|
void |
registerSingleton(java.lang.String name,
java.lang.Class<?> clazz)
Register a singleton bean with the underlying bean factory.
|
void |
registerSingleton(java.lang.String name,
java.lang.Class<?> clazz,
org.springframework.beans.MutablePropertyValues pvs)
Register a singleton bean with the underlying bean factory.
|
void |
setMetaClass(groovy.lang.MetaClass metaClass) |
void |
setProperty(java.lang.String property,
java.lang.Object newValue) |
cancelRefresh, closeBeanFactory, getBeanDefinition, getBeanFactory, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setId, setParent, setResourceLoaderaddApplicationListener, addBeanFactoryPostProcessor, close, containsBean, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, postProcessBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, start, stop, toStringgetClassLoader, getResourceByPath, setClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic GrailsApplicationContext(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory)
public GrailsApplicationContext(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory,
org.springframework.context.ApplicationContext applicationContext)
public GrailsApplicationContext(org.springframework.context.ApplicationContext parent)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic GrailsApplicationContext()
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic boolean containsBeanDefinition(java.lang.String beanName)
containsBeanDefinition in interface org.springframework.beans.factory.ListableBeanFactorycontainsBeanDefinition in interface org.springframework.beans.factory.support.BeanDefinitionRegistrycontainsBeanDefinition in class org.springframework.context.support.AbstractApplicationContextpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic java.lang.Object getProperty(java.lang.String property)
getProperty in interface groovy.lang.GroovyObjectpublic java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
invokeMethod in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObjectprotected void onRefresh()
onRefresh in class org.springframework.context.support.AbstractApplicationContextpublic org.springframework.ui.context.Theme getTheme(java.lang.String themeName)
public void setProperty(java.lang.String property,
java.lang.Object newValue)
setProperty in interface groovy.lang.GroovyObjectpublic void registerSingleton(java.lang.String name,
java.lang.Class<?> clazz)
throws org.springframework.beans.BeansException
For more advanced needs, register with the underlying BeanFactory directly.
org.springframework.beans.BeansExceptionGenericApplicationContext.getDefaultListableBeanFactory()public void registerSingleton(java.lang.String name,
java.lang.Class<?> clazz,
org.springframework.beans.MutablePropertyValues pvs)
throws org.springframework.beans.BeansException
For more advanced needs, register with the underlying BeanFactory directly.
org.springframework.beans.BeansExceptionGenericApplicationContext.getDefaultListableBeanFactory()public void registerPrototype(java.lang.String name,
java.lang.Class<?> clazz)
throws org.springframework.beans.BeansException
For more advanced needs, register with the underlying BeanFactory directly.
org.springframework.beans.BeansExceptionGenericApplicationContext.getDefaultListableBeanFactory()public void registerPrototype(java.lang.String name,
java.lang.Class<?> clazz,
org.springframework.beans.MutablePropertyValues pvs)
throws org.springframework.beans.BeansException
For more advanced needs, register with the underlying BeanFactory directly.
org.springframework.beans.BeansExceptionGenericApplicationContext.getDefaultListableBeanFactory()protected void prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
prepareBeanFactory in class org.springframework.context.support.AbstractApplicationContextprotected void assertBeanFactoryActive()
assertBeanFactoryActive in class org.springframework.context.support.AbstractApplicationContext