GridGain™ 4.3.1e
Enterprise "Big Data" Edition

org.gridgain.grid.resources
Annotation Type GridHomeResource


@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface GridHomeResource

Annotates a field or a setter method for injection of GridGain installation home path. GridGain installation home is provided to grid via GridConfiguration.

Home path can be injected into instances of following classes:

Here is how injection would typically happen:

 public class MyGridJob implements GridJob {
      ...
      @GridHomeResource
      private String home;
      ...
  }
 
or
 public class MyGridJob implements GridJob {
     ...
     private String home;
     ...
     @GridHomeResource
     public void setGridGainHome(String home) {
          this.home = home;
     }
     ...
 }
 

See GridConfiguration.getGridGainHome() for Grid configuration details.

 


GridGain™ 4.3.1e
Enterprise "Big Data" Edition

GridGain - In-Memory Big Data
Enterprise "Big Data" Edition, ver. 4.3.1e.10112012
2012 Copyright © GridGain Systems
Follow us:   Follow GridGain on Github Join GridGain User Group Follow GridGain on Twitter Follow GridGain on Vimeo