@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface SpringApplicationContextResource
Spring Application Context can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements ComputeJob {
...
@IgniteSpringApplicationContextResource
private ApplicationContext springCtx;
...
}
or
public class MyGridJob implements ComputeJob {
...
private ApplicationContext springCtx;
...
@IgniteSpringApplicationContextResource
public void setApplicationContext(MBeanServer springCtx) {
this.springCtx = springCtx;
}
...
}
For information about Spring framework visit www.springframework.org
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015