|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.spi.inject.SingletonTypeInjectableProvider<A,T>
A - the annotation typeT - the type returned by Injectable.getValue(com.sun.jersey.api.core.HttpContext)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. |
ComponentProvider.Scope |
getScope()
Get the scope of the injectable provider. |
T |
getValue(HttpContext c)
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 ComponentProvider.Scope 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(HttpContext c)
Injectable
getValue in interface Injectable<T>c - the HTTP context, may be null if no context is available
for the scope of injection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||