Package | Description |
---|---|
org.springframework.boot |
Core Spring Boot classes.
|
Modifier and Type | Method and Description |
---|---|
static <T> BootstrapRegistry.InstanceSupplier<T> |
BootstrapRegistry.InstanceSupplier.from(Supplier<T> supplier)
Factory method that can be used to create an
BootstrapRegistry.InstanceSupplier from a
Supplier . |
<T> BootstrapRegistry.InstanceSupplier<T> |
BootstrapRegistry.getRegisteredInstanceSupplier(Class<T> type)
Return any existing
BootstrapRegistry.InstanceSupplier for the given type. |
<T> BootstrapRegistry.InstanceSupplier<T> |
DefaultBootstrapContext.getRegisteredInstanceSupplier(Class<T> type) |
static <T> BootstrapRegistry.InstanceSupplier<T> |
BootstrapRegistry.InstanceSupplier.of(T instance)
Factory method that can be used to create an
BootstrapRegistry.InstanceSupplier for a
given instance. |
default BootstrapRegistry.InstanceSupplier<T> |
BootstrapRegistry.InstanceSupplier.withScope(BootstrapRegistry.Scope scope)
Return a new
BootstrapRegistry.InstanceSupplier with an updated BootstrapRegistry.Scope . |
Modifier and Type | Method and Description |
---|---|
<T> void |
BootstrapRegistry.register(Class<T> type,
BootstrapRegistry.InstanceSupplier<T> instanceSupplier)
Register a specific type with the registry.
|
<T> void |
DefaultBootstrapContext.register(Class<T> type,
BootstrapRegistry.InstanceSupplier<T> instanceSupplier) |
<T> void |
BootstrapRegistry.registerIfAbsent(Class<T> type,
BootstrapRegistry.InstanceSupplier<T> instanceSupplier)
Register a specific type with the registry if one is not already present.
|
<T> void |
DefaultBootstrapContext.registerIfAbsent(Class<T> type,
BootstrapRegistry.InstanceSupplier<T> instanceSupplier) |