A - the annotation typeT - the type returned by Injectable.getValue()public abstract class SingletonTypeInjectableProvider<A extends java.lang.annotation.Annotation,T> extends java.lang.Object implements InjectableProvider<A,java.lang.reflect.Type>, Injectable<T>
| Constructor and Description |
|---|
SingletonTypeInjectableProvider(java.lang.reflect.Type t,
T instance)
Construct a new instance with the Type and the instance.
|
| Modifier and Type | Method and Description |
|---|---|
Injectable<T> |
getInjectable(ComponentContext ic,
A a,
java.lang.reflect.Type c)
Get an injectable.
|
ComponentScope |
getScope()
Get the scope of the injectable provider.
|
T |
getValue()
Get the injectable value.
|
public SingletonTypeInjectableProvider(java.lang.reflect.Type t,
T instance)
t - the type of T.instance - the instance.public final ComponentScope getScope()
InjectableProvidergetScope in interface InjectableProvider<A extends java.lang.annotation.Annotation,java.lang.reflect.Type>public final Injectable<T> getInjectable(ComponentContext ic, A a, java.lang.reflect.Type c)
InjectableProvidergetInjectable in interface InjectableProvider<A extends java.lang.annotation.Annotation,java.lang.reflect.Type>ic - the injectable contexta - the annotation instancec - the context instancepublic final T getValue()
InjectablegetValue in interface Injectable<T>Copyright © 2016 Oracle Corporation. All Rights Reserved.