public class GrailsApplicationContext extends GenericApplicationContext implements 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').
Fields inherited from class | Fields |
---|---|
class GenericApplicationContext |
MESSAGE_SOURCE_BEAN_NAME, APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, APPLICATION_STARTUP_BEAN_NAME, SHUTDOWN_HOOK_THREAD_NAME, FACTORY_BEAN_PREFIX, CLASSPATH_ALL_URL_PREFIX, CLASSPATH_URL_PREFIX |
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(String beanName) |
|
public MetaClass |
getMetaClass() |
|
public Object |
getProperty(String property) |
|
public org.springframework.ui.context.Theme |
getTheme(String themeName) |
|
public Object |
invokeMethod(String name, Object args) |
|
protected void |
onRefresh() Initialize the theme capability. |
|
protected void |
prepareBeanFactory(ConfigurableListableBeanFactory beanFactory) |
|
public void |
registerPrototype(String name, Class<?> clazz) Register a prototype bean with the underlying bean factory. |
|
public void |
registerPrototype(String name, Class<?> clazz, MutablePropertyValues pvs) Register a prototype bean with the underlying bean factory. |
|
public void |
registerSingleton(String name, Class<?> clazz) Register a singleton bean with the underlying bean factory. |
|
public void |
registerSingleton(String name, Class<?> clazz, MutablePropertyValues pvs) Register a singleton bean with the underlying bean factory. |
|
public void |
setMetaClass(MetaClass metaClass) |
|
public void |
setProperty(String property, 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.