org.jbehave.core.steps.spring
Class SpringStepsFactory
java.lang.Object
org.jbehave.core.steps.AbstractStepsFactory
org.jbehave.core.steps.spring.SpringStepsFactory
- All Implemented Interfaces:
- InjectableStepsFactory
public class SpringStepsFactory
- extends AbstractStepsFactory
An InjectableStepsFactory that uses Spring's
ApplicationContext for the composition and instantiation of all
components that contain JBehave annotated methods.
- Author:
- Paul Hammant, Mauro Talevi
|
Method Summary |
java.lang.Object |
createInstanceOfType(java.lang.Class<?> type)
|
protected boolean |
isAllowed(java.lang.Class<?> type)
Checks if type returned from context is allowed, i.e. |
protected java.util.List<java.lang.Class<?>> |
stepsTypes()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringStepsFactory
public SpringStepsFactory(Configuration configuration,
org.springframework.context.ApplicationContext context)
stepsTypes
protected java.util.List<java.lang.Class<?>> stepsTypes()
- Specified by:
stepsTypes in class AbstractStepsFactory
isAllowed
protected boolean isAllowed(java.lang.Class<?> type)
- Checks if type returned from context is allowed, i.e. not null and not
abstract.
- Parameters:
type - the Class of the bean
- Returns:
- A boolean,
true if allowed
createInstanceOfType
public java.lang.Object createInstanceOfType(java.lang.Class<?> type)
Copyright © 2003-2012. All Rights Reserved.