Class ReferencingFactory<T>
java.lang.Object
org.glassfish.jersey.internal.inject.ReferencingFactory<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Supplier<T>
Factory that provides injection of the referenced instance.
- Author:
- Marek Potociar
-
Constructor Summary
ConstructorDescriptionReferencingFactory
(jakarta.inject.Provider<Ref<T>> referenceFactory) Create new referencing injection factory. -
Method Summary
Modifier and TypeMethodDescriptionget()
Get a reference factory providing an empty reference.referenceFactory
(T initialValue) Get a reference factory providing an initialized reference.
-
Constructor Details
-
ReferencingFactory
Create new referencing injection factory.- Parameters:
referenceFactory
- reference provider backing the factory.
-
-
Method Details
-
get
-
referenceFactory
Get a reference factory providing an empty reference.- Type Parameters:
T
- reference type.- Returns:
- reference factory providing an empty reference.
-
referenceFactory
Get a reference factory providing an initialized reference.- Type Parameters:
T
- reference type.- Parameters:
initialValue
- initial value stored in the reference provided by the returned factory.- Returns:
- reference factory providing a reference initialized with an
initialValue
.
-