public class GrailsApplicationContext extends GenericApplicationContext implements groovy.lang.GroovyObject
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').
Modifiers | Name | Description |
---|---|---|
protected groovy.lang.MetaClass |
metaClass |
Constructor and description |
---|
GrailsApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory) |
GrailsApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory, ApplicationContext applicationContext) |
GrailsApplicationContext(ApplicationContext parent) |
GrailsApplicationContext() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
assertBeanFactoryActive() |
|
public boolean |
containsBeanDefinition(java.lang.String beanName) |
|
public groovy.lang.MetaClass |
getMetaClass() |
|
public java.lang.Object |
getProperty(java.lang.String property) |
|
public Theme |
getTheme(java.lang.String themeName) |
|
public java.lang.Object |
invokeMethod(java.lang.String name, java.lang.Object args) |
|
protected void |
onRefresh() Initialize the theme capability. |
|
protected void |
prepareBeanFactory(ConfigurableListableBeanFactory beanFactory) |
|
public void |
registerPrototype(java.lang.String name, java.lang.Class<?> clazz) Register a prototype bean with the underlying bean factory. |
|
public void |
registerPrototype(java.lang.String name, java.lang.Class<?> clazz, MutablePropertyValues pvs) Register a prototype bean with the underlying bean factory. |
|
public void |
registerSingleton(java.lang.String name, java.lang.Class<?> clazz) Register a singleton bean with the underlying bean factory. |
|
public void |
registerSingleton(java.lang.String name, java.lang.Class<?> clazz, MutablePropertyValues pvs) Register a singleton bean with the underlying bean factory. |
|
public void |
setMetaClass(groovy.lang.MetaClass metaClass) |
|
public void |
setProperty(java.lang.String property, java.lang.Object newValue) |
Initialize the theme capability.
Register a prototype bean with the underlying bean factory.
For more advanced needs, register with the underlying BeanFactory directly.
Register a prototype bean with the underlying bean factory.
For more advanced needs, register with the underlying BeanFactory directly.
Register a singleton bean with the underlying bean factory.
For more advanced needs, register with the underlying BeanFactory directly.
Register a singleton bean with the underlying bean factory.
For more advanced needs, register with the underlying BeanFactory directly.