@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface GridTaskContinuousMapperResource
GridComputeTaskContinuousMapper resource.
Task continuous mapper can be injected into GridComputeTask class
instance.
Here is how injection would typically happen:
public class MyGridJob implements GridComputeJob {
...
@GridTaskContinuousMapperResource
private GridComputeTaskContinuousMapper mapper;
...
}
or
public class MyGridJob implements GridComputeJob {
...
private GridComputeTaskContinuousMapper mapper;
...
@GridTaskContinuousMapperResource
public void setMapper(GridComputeTaskContinuousMapper mapper) {
this.mapper = mapper;
}
...
}
Copyright © 2014. All rights reserved.