|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jersey.spi.inject.SingletonTypeInjectableProvider<A,T>
A
- the annotation typeT
- the type returned by Injectable.getValue()
public abstract class SingletonTypeInjectableProvider<A extends java.lang.annotation.Annotation,T>
A utility class that may implemented to support a singleton injectable provider for a specific type T, and an instance of type T, that is to be injected.
Constructor Summary | |
---|---|
SingletonTypeInjectableProvider(java.lang.reflect.Type t,
T instance)
Construct a new instance with the Type and the instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingletonTypeInjectableProvider(java.lang.reflect.Type t, T instance)
t
- the type of T.instance
- the instance.Method Detail |
---|
public final ComponentScope getScope()
InjectableProvider
getScope
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)
InjectableProvider
getInjectable
in interface InjectableProvider<A extends java.lang.annotation.Annotation,java.lang.reflect.Type>
ic
- the injectable contexta
- the annotation instancec
- the context instance
public final T getValue()
Injectable
getValue
in interface Injectable<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |