Class AutowiredResourceInjector

All Implemented Interfaces:
ResourceInjector

@Deprecated public class AutowiredResourceInjector extends SimpleResourceInjector
Deprecated.
in favor of the SimpleResourceInjector
Resource injector that uses setter methods to inject resources. All methods and fields annotated with @Inject are evaluated. If that method has a single parameter, a Resource of that type is injected into it, if present.

Unlike the SimpleResourceInjector, changes in the provided Iterable are reflected in this injector.

Since:
1.1
Author:
Allard Buijze
  • Constructor Details

    • AutowiredResourceInjector

      public AutowiredResourceInjector(Iterable<Object> resources)
      Deprecated.
      Initializes the resource injector to inject to given resources.
      Parameters:
      resources - the resources to inject