| 程序包 | 说明 |
|---|---|
| net.hasor.cobble.provider |
提供 Supplier、Callable 的转换和包装
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
PrototypeScope
多例
|
class |
SingletonScope
单例
|
| 限定符和类型 | 方法和说明 |
|---|---|
default <T> Supplier<T> |
Scope.chainScope(Object key,
Scope[] scopeChain,
int start,
int end,
Supplier<T> provider)
构造一个Scope链,使一个对象的创建可以同时贯穿多个Scope。
|
default <T> Supplier<T> |
Scope.chainScope(Object key,
Scope[] scopeChain,
Supplier<T> provider)
构造一个Scope链,使一个对象的创建可以同时贯穿多个Scope。
|
default <T> Supplier<T> |
Scope.chainScope(Object key,
Scope secondScope,
Supplier<T> provider)
构造一个Scope链,使一个对象的创建可以同时贯穿两个Scope。
|
Copyright © 2022–2023. All rights reserved.