Class GridResourceIoc
- java.lang.Object
-
- org.apache.ignite.internal.processors.resource.GridResourceIoc
-
public class GridResourceIoc extends Object
Resource container contains caches for classes used for injection. Caches used to improve the efficiency of standard Java reflection mechanism.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGridResourceIoc.AnnotationSet
-
Constructor Summary
Constructors Constructor Description GridResourceIoc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninject(Object target, Class<? extends Annotation> annCls, org.apache.ignite.internal.processors.resource.GridResourceInjector injector, @Nullable GridDeployment dep, @Nullable Class<?> depCls)Injects given resource via field or setter with specified annotations on provided target object.voidprintMemoryStats()Print memory statistics
-
-
-
Method Detail
-
inject
public boolean inject(Object target, Class<? extends Annotation> annCls, org.apache.ignite.internal.processors.resource.GridResourceInjector injector, @Nullable @Nullable GridDeployment dep, @Nullable @Nullable Class<?> depCls) throws IgniteCheckedException
Injects given resource via field or setter with specified annotations on provided target object.- Parameters:
target- Target object.annCls- Setter annotation.injector- Resource to inject.dep- Deployment.depCls- Deployment class.- Returns:
Trueif resource was injected.- Throws:
IgniteCheckedException- Thrown in case of any errors during injection.
-
printMemoryStats
public void printMemoryStats()
Print memory statistics
-
-