|
GridGain 2.1.0
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Apache20LicenseCompatible 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 = null;
@GridSpringApplicationContextResource
private ApplicationContext springCtx = null;
...
@GridUserResourceOnDeployed
private void deploy() {
log.info("Deploying resource: " + this);
}
...
}
See also GridUserResourceOnUndeployed for undeployment callbacks.
See Also:
Documentation
Email Support
Online Forums
Issue Tracking
Author: 2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.1.0

|
GridGain 2.1.0
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
|
GridGain - Grid Computing Made Simple, ver. 2.1.0.19122008
2005-2008 Copyright © GridGain Systems. All Rights Reserved. |
|
|