|
GridGain 2.0.3
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
@Apache20LicenseCompatible
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. It can be injected into grid tasks, grid jobs, and SPI's.
Here is how injection would typically happen:
public class MyGridJob implements GridJob {
...
@GridSpringApplicationContenxtResource
private ApplicationContext springCtx;
...
}
or
public class MyGridJob implements GridJob {
...
private ApplicationContext springCtx = null;
...
@GridSpringApplicationContextResource
public void setApplicationContext(MBeanServer springCtx) {
this.springCtx = springCtx;
}
...
}
For information about Spring framework visit www.springframework.org
See Also:
Documentation
Email Support
Online Forums
Issue Tracking
Author: 2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3

|
GridGain 2.0.3
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
|
GridGain - Grid Computing Made Simple, ver. 2.0.3.20052008
2005-2008 Copyright © GridGain Systems. All Rights Reserved. |
|