T
- インスタンス型 @FunctionalInterfaceSE public static interface BootstrapRegistry.InstanceSupplier<T>
修飾子と型 | メソッドと説明 |
---|---|
static <T> BootstrapRegistry.InstanceSupplier<T> | from(SupplierSE<T> supplier) Supplier SE から BootstrapRegistry.InstanceSupplier を作成するために使用できるファクトリメソッド。 |
T | get(BootstrapContext context) 必要に応じてインスタンスを作成するために使用されるファクトリメソッド。 |
default BootstrapRegistry.Scope | getScope() 指定されたインスタンスのスコープを返します。 |
static <T> BootstrapRegistry.InstanceSupplier<T> | of(T instance) 特定のインスタンスの BootstrapRegistry.InstanceSupplier を作成するために使用できるファクトリメソッド。 |
default BootstrapRegistry.InstanceSupplier<T> | withScope(BootstrapRegistry.Scope scope) 更新された BootstrapRegistry.Scope を含む新しい BootstrapRegistry.InstanceSupplier を返します。 |
T get(BootstrapContext context)
context
- 他のブートストラップインスタンスを取得するために使用できる BootstrapContext
。default BootstrapRegistry.Scope getScope()
default BootstrapRegistry.InstanceSupplier<T> withScope(BootstrapRegistry.Scope scope)
BootstrapRegistry.Scope
を含む新しい BootstrapRegistry.InstanceSupplier
を返します。scope
- 新しいスコープ BootstrapRegistry.InstanceSupplier
インスタンス static <T> BootstrapRegistry.InstanceSupplier<T> of(T instance)
BootstrapRegistry.InstanceSupplier
を作成するために使用できるファクトリメソッド。T
- インスタンス型 instance
- インスタンス BootstrapRegistry.InstanceSupplier
static <T> BootstrapRegistry.InstanceSupplier<T> from(SupplierSE<T> supplier)
Supplier
SE から BootstrapRegistry.InstanceSupplier
を作成するために使用できるファクトリメソッド。T
- インスタンス型 supplier
- インスタンスを提供するサプライヤー BootstrapRegistry.InstanceSupplier