@Bean
open fun testJob(): Job = batch {
job("testJob") {
stepBean("stepBean1")
listenerBean("listenerBean1") // unsupported
}
}
以及是否可以在BatchDsl提供一个方法获取beanFactory, 让我扩展自己的dsl时使用?
当然, 我可以自己注入一个, 不过为了和现在的stepBean内部实现保持统一.
And whether it can be provided getBeanFactory method in BatchDsl, so that I can easily get the beans in spring when I define DSL?
Of course i can inject it myself, just for the sake of code style unity.
期待您的回复~
Looking forward to your reply :)