|
GridGain 4.3.1e
Enterprise "Big Data" Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface GridSpringApplicationContextResource
Annotates a field or a setter method for injection of Spring ApplicationContext resource.
When GridGain starts using Spring configuration, the Application Context for Spring
Configuration is injected as this resource. Spring application context can also be explicitly
passed into the grid via GridFactory.start(GridConfiguration, ApplicationContext)
method.
Spring Application Context can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements GridJob {
...
@GridSpringApplicationContextResource
private ApplicationContext springCtx;
...
}
or
public class MyGridJob implements GridJob {
...
private ApplicationContext springCtx;
...
@GridSpringApplicationContextResource
public void setApplicationContext(MBeanServer springCtx) {
this.springCtx = springCtx;
}
...
}
For information about Spring framework visit www.springframework.org

|
GridGain 4.3.1e
Enterprise "Big Data" Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
|
GridGain - In-Memory Big Data
|
|
|