|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface GridJobContextResource
Annotates a field or a setter method for injection of GridJobContext instance.
It can be injected into grid jobs only.
Job context can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements GridJob {
...
@GridJobContextResource
private GridJobContext jobCtx;
...
}
or
public class MyGridJob implements GridJob {
...
private GridJobContext jobCtx;
...
@GridJobContextResource
public void setJobContext(GridJobContext jobCtx) {
this.jobCtx = jobCtx;
}
...
}
| Wiki | |
| Forum |

|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
|
GridGain - Real Time Big Data
|
|
|