Guice and JSR-330

JSR-330 defines specific naming conventions in terms of packages, for example:

javax.inject.Inject javax.inject.Scope 

Guice is the reference implementation of the JSR-330. However, when using it, you will notice that this is not in accordance with the specification. For instance:

 com.google.inject.Inject com.google.inject.Scope 

This does not occur in any of the link implementations that I have seen so far. What makes Google Guice so special that as an RI, they can simply ignore the specification that they implement?

+4
source share
1 answer

Guice 3 supports JSR 330 annotations. It also supports com.google annotations for backward compatibility with earlier versions of Guice (when JSR 330 does not exist yet).

+16
source

Source: https://habr.com/ru/post/1382705/


All Articles