Class 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.
    • Constructor Detail

      • GridResourceIoc

        public GridResourceIoc()
    • 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:
        True if resource was injected.
        Throws:
        IgniteCheckedException - Thrown in case of any errors during injection.
      • printMemoryStats

        public void printMemoryStats()
        Print memory statistics