public class GridResourceJobContextInjector extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
getResource()
Gets resource.
|
void |
inject(org.apache.ignite.internal.processors.resource.GridResourceField field,
Object target,
Class<?> depCls,
GridDeployment dep)
Injects resource into field.
|
void |
inject(org.apache.ignite.internal.processors.resource.GridResourceMethod mtd,
Object target,
Class<?> depCls,
GridDeployment dep)
Injects resource with a setter method.
|
String |
toString() |
void |
undeploy(GridDeployment dep)
Gracefully cleans all resources associated with deployment.
|
public void inject(org.apache.ignite.internal.processors.resource.GridResourceField field,
Object target,
Class<?> depCls,
GridDeployment dep)
throws IgniteCheckedException
field - Field to inject.target - Target object the field belongs to.depCls - Deployed class.dep - Deployment.IgniteCheckedException - If injection failed.public void inject(org.apache.ignite.internal.processors.resource.GridResourceMethod mtd,
Object target,
Class<?> depCls,
GridDeployment dep)
throws IgniteCheckedException
mtd - Setter method.target - Target object the field belongs to.depCls - Deployed class.dep - Deployment.IgniteCheckedException - If injection failed.public T getResource()
public void undeploy(GridDeployment dep)
dep - Deployment to undeploy.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019