|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.core.io.DefaultResourceLoader
org.springframework.context.support.AbstractApplicationContext
org.springframework.context.support.GenericApplicationContext
org.codehaus.groovy.grails.commons.spring.GrailsApplicationContext
public class GrailsApplicationContext
An ApplicationContext that extends StaticApplicationContext and implements GroovyObject such that beans can be retrieved with the dot de-reference syntax instead of using getBean('name').
| Field Summary | |
|---|---|
protected groovy.lang.MetaClass |
metaClass
|
| Fields inherited from class org.springframework.context.support.AbstractApplicationContext |
|---|
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME |
| Fields inherited from interface org.springframework.context.ConfigurableApplicationContext |
|---|
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME |
| Fields inherited from interface org.springframework.beans.factory.BeanFactory |
|---|
FACTORY_BEAN_PREFIX |
| Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
|---|
CLASSPATH_ALL_URL_PREFIX |
| Fields inherited from interface org.springframework.core.io.ResourceLoader |
|---|
CLASSPATH_URL_PREFIX |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.springframework.context.support.GenericApplicationContext |
|---|
cancelRefresh, closeBeanFactory, getBeanDefinition, getBeanFactory, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setId, setParent, setResourceLoader |
| Methods inherited from class org.springframework.context.support.AbstractApplicationContext |
|---|
addApplicationListener, addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, 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, toString |
| Methods inherited from class org.springframework.core.io.DefaultResourceLoader |
|---|
getClassLoader, getResourceByPath, setClassLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.beans.factory.support.BeanDefinitionRegistry |
|---|
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames |
| Methods inherited from interface org.springframework.core.AliasRegistry |
|---|
getAliases |
| Methods inherited from interface org.springframework.core.io.ResourceLoader |
|---|
getClassLoader |
| Field Detail |
|---|
protected groovy.lang.MetaClass metaClass
| Constructor Detail |
|---|
public 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.BeansException
public GrailsApplicationContext()
throws org.springframework.beans.BeansException
org.springframework.beans.BeansException| Method Detail |
|---|
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic java.lang.Object getProperty(java.lang.String property)
getProperty in interface groovy.lang.GroovyObject
public 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.GroovyObject
public 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.AbstractApplicationContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||