Interface used to perform injection with.
The injector factory is responsible for creating injectors for a given class.
This abstract base class performs injection at construction.
The main entry point for programmatic dependency injection.
Users of this package will typically use:
Injector: This is the interface used to perform injection of dependencies into a given object.
Injectable: By subclassing this class, the classes automatically get their dependencies injected at construction.
InjectorBuilder: To get an instance of the
For example, to inject into a given object, use:
Injector injector = InjectorBuilder.getInjector(); MyPojo pojo = new MyPojo(); injector.inject(pojo);
Of interest to implementations of this package integrating with dependency injection frameworks are:
Injector: The main interface to be implemented is the
Injector, by which injection is done.
InjectorFactory: Injectors are created by an implementation of the
InjectorFactorywhich creates injectors based on the class.
InjectorBuilder: Implementations must make their
InjectorFactoryavailable through the
Copyright © 2022. All rights reserved.