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)
           
 void createInstances()
           
 void disposeInstances()
           
<T> T
getInstance(Class<T> type)
           
 
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

createInstances

public void createInstances()
Specified by:
createInstances in interface ObjectFactory

disposeInstances

public void disposeInstances()
Specified by:
disposeInstances in interface ObjectFactory

getInstance

public <T> T getInstance(Class<T> type)
Specified by:
getInstance in interface ObjectFactory


Copyright © 2012. All Rights Reserved.