Class ReferencingFactory<T>
java.lang.Object
org.glassfish.jersey.internal.inject.ReferencingFactory<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Supplier<T>
- Direct Known Subclasses:
ClientBinder.RequestContextInjectionFactory, JettyHttpContainer.JettyRequestReferencingFactory, JettyHttpContainer.JettyResponseReferencingFactory, MonitoringFeature.ApplicationInfoInjectionFactory, MonitoringFeature.StatisticsInjectionFactory, SimpleContainer.SimpleRequestReferencingFactory, SimpleContainer.SimpleResponseReferencingFactory, WebComponent.HttpServletRequestReferencingFactory, WebComponent.HttpServletResponseReferencingFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReferencingFactory(javax.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.
-
Field Details
-
referenceFactory
-
-
Constructor Details
-
ReferencingFactory
-
-
Method Details
-
get
-
referenceFactory
-
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.
-