toggle menu
Simple Robot
3.3.0
jvm
switch theme
search in API
simboot-core
/
love.forte.simboot.core.application
/
beanBy
bean
By
inline
fun
<
T
:
Any
>
BeanContainerBuilder
.
beanBy
(
name
:
String
,
crossinline
factory
:
(
)
->
T
)
:
Bean
<
out
T
>
(
source
)
注册一个bean。
e.g.
beanBy("foo") { Foo() }
Content copied to clipboard