A
- the annotation typeT
- the type returned by Injectable.getValue()
public abstract class SingletonTypeInjectableProvider<A extends Annotation,T> extends Object implements InjectableProvider<A,Type>, Injectable<T>
Constructor and Description |
---|
SingletonTypeInjectableProvider(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,
Type c)
Get an injectable.
|
ComponentScope |
getScope()
Get the scope of the injectable provider.
|
T |
getValue()
Get the injectable value.
|
public final ComponentScope getScope()
InjectableProvider
getScope
in interface InjectableProvider<A extends Annotation,Type>
public final Injectable<T> getInjectable(ComponentContext ic, A a, Type c)
InjectableProvider
getInjectable
in interface InjectableProvider<A extends Annotation,Type>
ic
- the injectable contexta
- the annotation instancec
- the context instancepublic final T getValue()
Injectable
getValue
in interface Injectable<T>
Copyright © 2013 Oracle Corporation. All rights reserved.