Identifies injectable constructors and
static methods.
An @Inject-annotated static method is allowed in the following places:
- The method can be a direct child of the class or interface that defines its return type.
- If the class or interface that defines its return type is nested inside an enclosing class, then the method may also be a direct child of the enclosing class.
- The method can be a direct child of the component interface.
Alternatively, the
Providesannotation can be used in that case.