cucumber.runtime.java.spring
Class SpringFactory

java.lang.Object
  extended by 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:

Application beans are accessible from the step definitions using autowiring (with annotations).


Constructor Summary
SpringFactory()
           
 
Method Summary
 void addClass(Class<?> stepClass)
           
<T> T
getInstance(Class<T> type)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringFactory

public SpringFactory()
Method Detail

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.