Revision: 1183
Author: sberlin
Date: Sat Jul 3 08:42:51 2010
Log: added "@since 3.0" to all new things, and modified ones that
had "@since 2.1" to be 3.0.
http://code.google.com/p/google-guice/source/detail?r=1183
Modified:
/trunk/src/com/google/inject/Injector.java
/trunk/src/com/google/inject/InjectorBuilder.java
/trunk/src/com/google/inject/Key.java
/trunk/src/com/google/inject/Scopes.java
/trunk/src/com/google/inject/binder/LinkedBindingBuilder.java
/trunk/src/com/google/inject/spi/InjectionPoint.java
/trunk/src/com/google/inject/spi/Toolable.java
/trunk/src/com/google/inject/util/Jsr330.java
=======================================
--- /trunk/src/com/google/inject/Injector.java Wed Mar 10 14:18:52 2010
+++ /trunk/src/com/google/inject/Injector.java Sat Jul 3 08:42:51 2010
@@ -112,6 +112,8 @@
* injector}, should one exist.
*
* <p>This method is part of the Guice SPI and is intended for use by
tools and extensions.
+ *
+ * @since 3.0
*/
Map<Key<?>, Binding<?>> getAllBindings();
@@ -144,6 +146,8 @@
* for keys that aren't bound.
*
* <p> This method is part of the Guice SPI and is intended for use by
tools and extensions.
+ *
+ * @since 3.0
*/
<T> Binding<T> getExistingBinding(Key<T> key);
@@ -239,6 +243,8 @@
* Scopes.SINGLETON}. The returned map is immutable.
*
* <p>This method is part of the Guice SPI and is intended for use by
tools and extensions.
+ *
+ * @since 3.0
*/
Map<Class<? extends Annotation>, Scope> getScopeBindings();
}
=======================================
--- /trunk/src/com/google/inject/InjectorBuilder.java Sat Apr 24 14:42:40
2010
+++ /trunk/src/com/google/inject/InjectorBuilder.java Sat Jul 3 08:42:51
2010
@@ -37,7 +37,7 @@
* }
* </pre>
*
- * @since 2.1
+ * @since 3.0
*/
public class InjectorBuilder {
=======================================
--- /trunk/src/com/google/inject/Key.java Fri Jun 11 12:11:13 2010
+++ /trunk/src/com/google/inject/Key.java Sat Jul 3 08:42:51 2010
@@ -276,6 +276,8 @@
/**
* Returns a new key of the specified type with the same annotation as
this
* key.
+ *
+ * @since 3.0
*/
public <T> Key<T> ofType(Class<T> type) {
return new Key<T>(type, annotationStrategy);
@@ -284,6 +286,8 @@
/**
* Returns a new key of the specified type with the same annotation as
this
* key.
+ *
+ * @since 3.0
*/
public Key<?> ofType(Type type) {
return new Key<Object>(type, annotationStrategy);
@@ -292,6 +296,8 @@
/**
* Returns a new key of the specified type with the same annotation as
this
* key.
+ *
+ * @since 3.0
*/
public <T> Key<T> ofType(TypeLiteral<T> type) {
return new Key<T>(type, annotationStrategy);
@@ -299,6 +305,8 @@
/**
* Returns true if this key has annotation attributes.
+ *
+ * @since 3.0
*/
public boolean hasAttributes() {
return annotationStrategy.hasAttributes();
@@ -307,6 +315,8 @@
/**
* Returns this key without annotation attributes, i.e. with only the
* annotation type.
+ *
+ * @since 3.0
*/
public Key<T> withoutAttributes() {
return new Key<T>(typeLiteral, annotationStrategy.withoutAttributes());
=======================================
--- /trunk/src/com/google/inject/Scopes.java Sat Feb 13 08:16:44 2010
+++ /trunk/src/com/google/inject/Scopes.java Sat Jul 3 08:42:51 2010
@@ -124,7 +124,7 @@
* was retrieved via {...@link Injector#getBinding Injector.getBinding()}),
then this method will
* also true if the target binding is singleton-scoped.
*
- * @since 2.1
+ * @since 3.0
*/
public static boolean isSingleton(Binding<?> binding) {
do {
=======================================
--- /trunk/src/com/google/inject/binder/LinkedBindingBuilder.java Mon Sep
7 17:35:45 2009
+++ /trunk/src/com/google/inject/binder/LinkedBindingBuilder.java Sat Jul
3 08:42:51 2010
@@ -77,11 +77,15 @@
/**
* See the EDSL examples at {...@link com.google.inject.Binder}.
+ *
+ * @since 3.0
*/
<S extends T> ScopedBindingBuilder toConstructor(Constructor<S>
constructor);
/**
* See the EDSL examples at {...@link com.google.inject.Binder}.
+ *
+ * @since 3.0
*/
<S extends T> ScopedBindingBuilder toConstructor(
Constructor<S> constructor, TypeLiteral<? extends S> type);
=======================================
--- /trunk/src/com/google/inject/spi/InjectionPoint.java Tue Jun 22
22:13:56 2010
+++ /trunk/src/com/google/inject/spi/InjectionPoint.java Sat Jul 3
08:42:51 2010
@@ -162,6 +162,8 @@
/**
* Returns true if the element is annotated with {...@literal @}...@link
Toolable}.
+ *
+ * @since 3.0
*/
public boolean isToolable() {
return ((AnnotatedElement)member).isAnnotationPresent(Toolable.class);
@@ -171,6 +173,8 @@
* Returns the generic type that defines this injection point. If the
member exists on a
* parameterized type, the result will include more type information
than the member's {...@link
* Member#getDeclaringClass() raw declaring class}.
+ *
+ * @since 3.0
*/
public TypeLiteral<?> getDeclaringType() {
return declaringType;
@@ -196,6 +200,8 @@
* type literal.
*
* @param constructor any single constructor present on {...@code type}.
+ *
+ * @since 3.0
*/
public static <T> InjectionPoint forConstructor(Constructor<T>
constructor) {
return new
InjectionPoint(TypeLiteral.get(constructor.getDeclaringClass()),
constructor);
@@ -206,6 +212,8 @@
*
* @param constructor any single constructor present on {...@code type}.
* @param type the concrete type that defines {...@code constructor}.
+ *
+ * @since 3.0
*/
public static <T> InjectionPoint forConstructor(
Constructor<T> constructor, TypeLiteral<? extends T> type) {
=======================================
--- /trunk/src/com/google/inject/spi/Toolable.java Sat Jul 3 08:12:19 2010
+++ /trunk/src/com/google/inject/spi/Toolable.java Sat Jul 3 08:42:51 2010
@@ -22,6 +22,7 @@
* com.google.inject.Binder#requestInjection requestInjection}.
*
* @author [email protected] (Sam Berlin)
+ * @since 3.0
*/
@Target({ METHOD })
@Retention(RUNTIME)
=======================================
--- /trunk/src/com/google/inject/util/Jsr330.java Sat Apr 24 15:29:18 2010
+++ /trunk/src/com/google/inject/util/Jsr330.java Sat Jul 3 08:42:51 2010
@@ -23,7 +23,8 @@
* Utility methods for use with <a
href="http://code.google.com/p/atinject/">JSR
* 330</a>.
*
- * @author [email protected] (Jesse Wilson)
+ * @author [email protected] (Jesse Wilson)
+ * @since 3.0
*/
public class Jsr330 {
--
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.