Revision: 1220
Author: sberlin
Date: Wed Sep 8 14:14:56 2010
Log: Edited wiki page JSR330 through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1220
Modified:
/wiki/JSR330.wiki
=======================================
--- /wiki/JSR330.wiki Mon Sep 7 18:50:20 2009
+++ /wiki/JSR330.wiki Wed Sep 8 14:14:56 2010
@@ -9,7 +9,7 @@
|| *JSR-330*<br>javax.inject || *Guice* <br>com.google.inject || ||
||
[http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Inject.html
@Inject] ||
[http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/Inject.html
@Inject] || Interchangeable, but JSR-330 places additional constraints on
injection points. Fields must be non-final. Methods must be non-abstract,
return void, and not have type parameters of their own. ||
-||
[http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Named.html
@Named] ||
[http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/name/Named.html
@Named] || *Not equivalent.* Be careful to inject the same `...@named` that
you bind. ||
+||
[http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Named.html
@Named] ||
[http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/name/Named.html
@Named] || Interchangeable. ||
||
[http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Qualifier.html
@Qualifier] ||
[http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/BindingAnnotation.html
@BindingAnnotation] || Interchangeable. ||
||
[http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Scope.html
@Scope] ||
[http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/ScopeAnnotation.html
@ScopeAnnotation] || Interchangeable. ||
||
[http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Singleton.html
@Singleton] ||
[http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/Singleton.html
@Singleton] || Interchangeable. ||
@@ -18,4 +18,4 @@
==Best Practices==
For now, stick with Guice's annotations and Provider interface.
-Mixing JSR-330 and Guice annotations is supported, but discouraged. In
particular, using both `...@named` annotations can be quite clumsy, as it is
hard to identify whose `...@named` is applied to a particular field or
parameter. Similarly, using both `Provider` interfaces can cause
difficultly, since they are not interchangeable.
+Mixing JSR-330 and Guice annotations is supported, but discouraged.
Similarly, using both `Provider` interfaces can cause difficultly, since
they are not interchangeable.
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.