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