Search in sources :

Example 1 with ConstructorInjection

use of org.picocontainer.injectors.ConstructorInjection in project jbehave-core by jbehave.

the class CoreStoriesUsingPico method 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;
}
Also used : MutablePicoContainer(org.picocontainer.MutablePicoContainer) DefaultPicoContainer(org.picocontainer.DefaultPicoContainer) Caching(org.picocontainer.behaviors.Caching) ConstructorInjection(org.picocontainer.injectors.ConstructorInjection)

Aggregations

DefaultPicoContainer (org.picocontainer.DefaultPicoContainer)1 MutablePicoContainer (org.picocontainer.MutablePicoContainer)1 Caching (org.picocontainer.behaviors.Caching)1 ConstructorInjection (org.picocontainer.injectors.ConstructorInjection)1