@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
@Deprecated
public @interface AutoBindSingleton
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<?> |
baseClass
Deprecated.
This is a synonym for
value(). |
boolean |
eager
Deprecated.
If true, instances will be created eagerly.
|
boolean |
multiple
Deprecated.
If true, instances are gathered into a Set using Guice's Multibinder.
|
java.lang.Class<?> |
value
Deprecated.
By default, AutoBindSingleton binds to the class that has the annotation.
|
public abstract java.lang.Class<?> value
@AutoBindSingleton(List.class)
for List<String>)public abstract java.lang.Class<?> baseClass
value(). It exists to make the annotation
more legible if other annotation values are used. NOTE: it is an error to
specify both value() and baseClass()public abstract boolean multiple
value() or baseClass()public abstract boolean eager