|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.internal.inject.ReferencingFactory<T>
T - public abstract class ReferencingFactory<T>
Factory that provides injection of the referenced instance.
| Constructor Summary | |
|---|---|
ReferencingFactory(org.glassfish.hk2.Factory<Ref<T>> referenceFactory)
Create new referencing injection factory. |
|
| Method Summary | ||
|---|---|---|
T |
get()
|
|
static
|
referenceFactory()
Get a reference factory providing an empty reference. |
|
static
|
referenceFactory(T initialValue)
Get a reference factory providing an initialized reference. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReferencingFactory(org.glassfish.hk2.Factory<Ref<T>> referenceFactory)
referenceFactory - reference provider backing the factory.| Method Detail |
|---|
public T get()
throws org.glassfish.hk2.ComponentException
get in interface org.glassfish.hk2.Factory<T>org.glassfish.hk2.ComponentExceptionpublic static <T> org.glassfish.hk2.Factory<Ref<T>> referenceFactory()
T - reference type.
public static <T> org.glassfish.hk2.Factory<Ref<T>> referenceFactory(T initialValue)
T - reference type.initialValue - initial value stored in the reference provided
by the returned factory.
initialValue.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||