- JSR-330 defines a set of annotations (
javax.inject ) that should be used in different dependency injection structures. The spec was done by Rod Johnson (from Spring) and Bob Lee from (Google Guice) - (partially) due to specs, spring and guice support this set of annotations
This is the part of JavaEE that spring uses.
The same kit is used by JSR-299, which is led by JBoss Gavin King. However, JSR-299 (also known as CDI) uses javax.enterprise.inejct/context and represents a completely new dependency injection framework. It is based on the ideas of spring, guice and seam, but is formally defined as JSR and is designed to cover many corner cases, as well as seamless integration with other parts of JavaEE.
JSR-299 defines both an API and an SPI so that specific implementations can be developed. Current implementations of JBoss Weld , Apache OpenWebBeans, and Resin CanDI .
So, to answer your question - there is no direct connection between javax.enterprise.inject and spring.
source share