@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface GridMarshallerResource
GridMarshaller resource. Grid marshaller
is provided to grid via GridConfiguration.
Marshaller can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements GridComputeJob {
...
@GridMarshallerResource
private GridMarshaller marshaller;
...
}
or
public class MyGridJob implements GridComputeJob {
...
private GridMarshaller marshaller;
...
@GridMarshallerResource
public void setMarshaller(GridMarshaller marshaller) {
this.marshaller = marshaller;
}
...
}
See GridConfiguration.getMarshaller() for Grid configuration details.
Copyright © 2014. All rights reserved.