自动化的实例化需求,如果仍以自然语言表达,并且团队的所有成员都可以轻易获取到,那这实际上就形成了一份可执行的需求说明。
An automated specification with examples, still in a human-readable form and easily accessible to all team members, becomes an executable specification.
此处的实例表明了如何自动化scheduler业务操作者。
The example here shows how the Scheduler business worker is automated.
在示例代码中,我用Spring的ApplicationContext确保了这种情况,因为它会自动地预先实例化所有单体bean。
In the sample code, I'm using a Spring ApplicationContext that ensures this is the case, because it automatically pre-instantiates all singleton beans.
应用推荐