| Constructor and Description |
|---|
ReferencingFactory(javax.inject.Provider<Ref<T>> referenceFactory)
Create new referencing injection factory.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
static <T> Supplier<Ref<T>> |
referenceFactory()
Get a reference factory providing an empty reference.
|
static <T> Supplier<Ref<T>> |
referenceFactory(T initialValue)
Get a reference factory providing an initialized reference.
|
public static <T> Supplier<Ref<T>> referenceFactory()
T - reference type.public static <T> Supplier<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.