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