@groovy.transform.CompileStatic class ApplicationContextExtension extends java.lang.Object
A Groovy extension module that adds additional methods to the Spring org.springframework.context.ApplicationContext interface
Constructor and description |
---|
ApplicationContextExtension
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.Object |
getAt(org.springframework.context.ApplicationContext applicationContext, java.lang.String name) Adds the ability to use the subscript operator to obtain beans |
|
static java.lang.Object |
propertyMissing(org.springframework.context.ApplicationContext applicationContext, java.lang.String name) Adds the ability to get beans via the dot operator |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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