| Modifier and Type | Field and Description |
|---|---|
| public static final Scoping | |
| private static final Scoping | EXPLICITLY_UNSCOPED
No scoping annotation has been applied explicitly. |
| public static final Scoping | |
| public static final Scoping | |
| public static final Scoping | UNSCOPED
No scoping annotation has been applied. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract <V> V | |
| public abstract void | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public static Scoping | |
| public static Scoping | |
| public Class | |
| public Scope | |
| public int | |
| public boolean | isEagerSingleton(Stage stage)
Returns true if this scope is a singleton that should be loaded eagerly in |
| public boolean | |
| public boolean | |
| pack-priv static Scoping | makeInjectable(Scoping scoping, InjectorImpl injector, Errors errors)
Replaces annotation scopes with instance scopes using the Injector's annotation-to-instance map. |
| pack-priv static <T> InternalFactory | scope(Key<T> key, InjectorImpl injector, InternalFactory<? extends T> creator, Object source, Scoping scoping)
Scopes an internal factory. |
| EAGER_SINGLETON | back to summary |
|---|---|
| public static final Scoping EAGER_SINGLETON | |
| EXPLICITLY_UNSCOPED | back to summary |
|---|---|
| private static final Scoping EXPLICITLY_UNSCOPED No scoping annotation has been applied explicitly. Note that this is is the same as | |
| SINGLETON_ANNOTATION | back to summary |
|---|---|
| public static final Scoping SINGLETON_ANNOTATION | |
| SINGLETON_INSTANCE | back to summary |
|---|---|
| public static final Scoping SINGLETON_INSTANCE | |
| UNSCOPED | back to summary |
|---|---|
| public static final Scoping UNSCOPED No scoping annotation has been applied. Note that this is different from | |
| Scoping | back to summary |
|---|---|
| private Scoping() | |
| acceptVisitor | back to summary |
|---|---|
| public abstract <V> V acceptVisitor(BindingScopingVisitor<V> visitor) | |
| applyTo | back to summary |
|---|---|
| public abstract void applyTo(ScopedBindingBuilder scopedBindingBuilder) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forAnnotation | back to summary |
|---|---|
| public static Scoping forAnnotation(final Class<? extends Annotation> scopingAnnotation) | |
| forInstance | back to summary |
|---|---|
| public static Scoping forInstance(final Scope scope) | |
| getScopeAnnotation | back to summary |
|---|---|
| public Class Returns the scope annotation, or | |
| getScopeInstance | back to summary |
|---|---|
| public Scope getScopeInstance() Returns the scope instance, or | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEagerSingleton | back to summary |
|---|---|
| public boolean isEagerSingleton(Stage stage) Returns true if this scope is a singleton that should be loaded eagerly in | |
| isExplicitlyScoped | back to summary |
|---|---|
| public boolean isExplicitlyScoped() Returns true if this scope was explicitly applied. If no scope was explicitly applied then the scoping annotation will be used. | |
| isNoScope | back to summary |
|---|---|
| public boolean isNoScope() Returns true if this is the default scope. In this case a new instance will be provided for each injection. | |
| makeInjectable | back to summary |
|---|---|
| pack-priv static Scoping makeInjectable(Scoping scoping, InjectorImpl injector, Errors errors) Replaces annotation scopes with instance scopes using the Injector's annotation-to-instance map. If the scope annotation has no corresponding instance, an error will be added and unscoped will be returned. | |
| scope | back to summary |
|---|---|
| pack-priv static <T> InternalFactory Scopes an internal factory. | |