cucumber.runtime.java.spring
Class SpringFactory
java.lang.Object
cucumber.runtime.java.spring.SpringFactory
- All Implemented Interfaces:
- ObjectFactory
public class SpringFactory
- extends Object
- implements ObjectFactory
Spring based implementation of ObjectFactory.
It uses two Spring contexts:
- one which represents the application under test. This is configured by
cucumber.xml (in the class path) and is never reloaded.
- one which contains the step definitions and is reloaded for each
scenario.
Application beans are accessible from the step definitions using autowiring
(with annotations).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringFactory
public SpringFactory()
addClass
public void addClass(Class<?> stepClass)
- Specified by:
addClass in interface ObjectFactory
start
public void start()
- Specified by:
start in interface ObjectFactory
stop
public void stop()
- Specified by:
stop in interface ObjectFactory
getInstance
public <T> T getInstance(Class<T> type)
- Specified by:
getInstance in interface ObjectFactory
Copyright © 2012. All Rights Reserved.