|
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) public @interface GridUserResourceOnDeployed
Annotates a special methods inside injected user-defined resource GridUserResource.
It can be used in any injected resource for grid tasks and grid jobs. Typically the method with this
annotation will be used for initialization of the injectable resource such as opening database connection,
network connection or reading configuration settings. Note that this method is called after the resource
itself has been injected with all its resources, if any.
Here is how annotation would typically happen:
public class MyUserResource {
...
@GridLoggerResource
private GridLogger log;
@GridSpringApplicationContextResource
private ApplicationContext springCtx;
...
@GridUserResourceOnDeployed
private void deploy() {
log.info("Deploying resource: " + this);
}
...
}
See also GridUserResourceOnUndeployed for undeployment callbacks.
| 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
|
|
|