See: Description
| Interface | Description |
|---|---|
| Injector |
Interface used to perform injection with.
|
| InjectorFactory |
The injector factory is responsible for creating injectors for a given class.
|
| Class | Description |
|---|---|
| Injectable |
This abstract base class performs injection at construction.
|
| InjectorBuilder |
Utility for obtaining an implementation of the
InjectorFactory using
ServiceLoader and for obtaining a SimpleInjector. |
| InjectorCache |
Cache of
CdiInjectors for efficiency to avoid duplicate analysis of a
given class. |
| SimpleInjector |
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 Injector.
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 InjectorFactory which
creates injectors based on the class.InjectorBuilder: Implementations must make their InjectorFactory
available through the ServiceLoader mechanism.
Class overview

Copyright © 2025. All rights reserved.