Constructor and Description |
---|
Hk2ReferencingFactory(jakarta.inject.Provider<org.glassfish.jersey.internal.util.collection.Ref<T>> referenceFactory)
Create new referencing injection factory.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose(T instance) |
T |
provide() |
static <T> Factory<org.glassfish.jersey.internal.util.collection.Ref<T>> |
referenceFactory()
Get a reference factory providing an empty reference.
|
static <T> Factory<org.glassfish.jersey.internal.util.collection.Ref<T>> |
referenceFactory(T initialValue)
Get a reference factory providing an initialized reference.
|
public Hk2ReferencingFactory(jakarta.inject.Provider<org.glassfish.jersey.internal.util.collection.Ref<T>> referenceFactory)
referenceFactory
- reference provider backing the factory.public static <T> Factory<org.glassfish.jersey.internal.util.collection.Ref<T>> referenceFactory()
T
- reference type.public static <T> Factory<org.glassfish.jersey.internal.util.collection.Ref<T>> referenceFactory(T initialValue)
T
- reference type.initialValue
- initial value stored in the reference provided
by the returned factory.initialValue
.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.