Java:JSR330
JSR330定义了Java依赖注入的标准。主要提供了一系列的定义(javax.inject.*):
- Provider<T> Provides instances of T.
- Inject Identifies injectable constructors, methods, and fields.
- Named String-based qualifier.
- Qualifier Identifies qualifier annotations.
- Scope Identifies scope annotations.
- Singleton Identifies a type that the injector only instantiates once.