T
- the instance typepublic static interface BootstrapRegistry.InstanceSupplier<T>
Modifier and Type | Method and Description |
---|---|
static <T> BootstrapRegistry.InstanceSupplier<T> |
from(java.util.function.Supplier<T> supplier)
Factory method that can be used to create a
BootstrapRegistry.InstanceSupplier from a
Supplier . |
T |
get(BootstrapContext context)
Factory method used to create the instance when needed.
|
static <T> BootstrapRegistry.InstanceSupplier<T> |
of(T instance)
Factory method that can be used to create a
BootstrapRegistry.InstanceSupplier for a
given instance. |
T get(BootstrapContext context)
context
- the BootstrapContext
which may be used to obtain other
bootstrap instances.static <T> BootstrapRegistry.InstanceSupplier<T> of(T instance)
BootstrapRegistry.InstanceSupplier
for a
given instance.T
- the instance typeinstance
- the instanceBootstrapRegistry.InstanceSupplier
static <T> BootstrapRegistry.InstanceSupplier<T> from(java.util.function.Supplier<T> supplier)
BootstrapRegistry.InstanceSupplier
from a
Supplier
.T
- the instance typesupplier
- the supplier that will provide the instanceBootstrapRegistry.InstanceSupplier