public InjectableStepsFactory stepsFactory() {
return new PicoStepsFactory(configuration(), createPicoContainer());
}
private PicoContainer createPicoContainer() {
MutablePicoContainer container = new DefaultPicoContainer(new Caching().wrap(new ConstructorInjection()));
container.addComponent(TradingService.class);
container.addComponent(TraderSteps.class);
container.addComponent(BeforeAfterSteps.class);
container.addComponent(AndSteps.class);
container.addComponent(CalendarSteps.class);
container.addComponent(PendingSteps.class);
container.addComponent(PriorityMatchingSteps.class);
container.addComponent(SandpitSteps.class);
container.addComponent(SearchSteps.class);
return container;
}