@CompileStatic class ApplicationContextExtension extends Object
A Groovy extension module that adds additional methods to the Spring ApplicationContext interface
Constructor and description |
---|
ApplicationContextExtension() |
Type Params | Return Type | Name and description |
---|---|---|
|
static Object |
getAt(ApplicationContext applicationContext, String name) Adds the ability to use the subscript operator to obtain beans |
|
static Object |
propertyMissing(ApplicationContext applicationContext, String name) Adds the ability to get beans via the dot operator |
Adds the ability to use the subscript operator to obtain beans
applicationContext
- The ApplicationContext instancename
- The bean nameAdds the ability to get beans via the dot operator @return
applicationContext
- The ApplicationContext instancename
- The bean name