|
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 GridInstanceResource
Annotates a field or a setter method for injection of current Grid instance.
It can be injected into grid tasks and grid jobs. Note that grid instance will
not be injected into SPI's, as there is no grid during SPI start.
Here is how injection would typically happen:
public class MyGridJob implements GridJob {
...
@GridInstanceResource
private Grid grid;
...
}
or
public class MyGridJob implements GridJob {
...
private Grid grid = null;
...
@GridInstanceResource
public void setGrid(Grid grid) {
this.grid = grid;
}
...
}
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. |
|