org.jbehave.core.steps
Class StepsConfiguration

java.lang.Object
  extended by org.jbehave.core.steps.StepsConfiguration
Direct Known Subclasses:
MostUsefulStepsConfiguration, UnmodifiableStepsConfiguration

public abstract class StepsConfiguration
extends Object

Provides the steps configuration used by the StepsFactory and the in the Steps implementations to customise its runtime properties.

StepsConfiguration dependencies can be provided either via constructor or via use* methods, which override the the default values of the dependency, which is always set. The use methods allow to override the dependencies one by one and play nicer with a Java hierarchical structure, in that does allow the use of non-static member variables.


Constructor Summary
protected StepsConfiguration()
          Default no-op constructor, uses the default instances defined for member variables.
protected StepsConfiguration(KeyWords keywords, StepPatternBuilder patternBuilder, StepMonitor monitor, com.thoughtworks.paranamer.Paranamer paranamer, ParameterConverters parameterConverters)
          Constructor that allows all dependencies to be injected
 
Method Summary
 Map<StepType,String> getStartingWordsByType()
           
 KeyWords keywords()
           
 StepMonitor monitor()
           
 ParameterConverters parameterConverters()
           
 com.thoughtworks.paranamer.Paranamer paranamer()
           
 StepPatternBuilder patternBuilder()
           
protected  Map<StepType,String> startingWordsByType(KeyWords keywords)
           
 void useKeywords(KeyWords keywords)
           
 void useMonitor(StepMonitor monitor)
           
 void useParameterConverters(ParameterConverters parameterConverters)
           
 void useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
           
 void usePatternBuilder(StepPatternBuilder patternBuilder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepsConfiguration

protected StepsConfiguration()
Default no-op constructor, uses the default instances defined for member variables.


StepsConfiguration

protected StepsConfiguration(KeyWords keywords,
                             StepPatternBuilder patternBuilder,
                             StepMonitor monitor,
                             com.thoughtworks.paranamer.Paranamer paranamer,
                             ParameterConverters parameterConverters)
Constructor that allows all dependencies to be injected

Parameters:
keywords -
patternBuilder -
monitor -
paranamer -
parameterConverters -
Method Detail

startingWordsByType

protected Map<StepType,String> startingWordsByType(KeyWords keywords)

patternBuilder

public StepPatternBuilder patternBuilder()

usePatternBuilder

public void usePatternBuilder(StepPatternBuilder patternBuilder)

monitor

public StepMonitor monitor()

useMonitor

public void useMonitor(StepMonitor monitor)

paranamer

public com.thoughtworks.paranamer.Paranamer paranamer()

useParanamer

public void useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)

parameterConverters

public ParameterConverters parameterConverters()

useParameterConverters

public void useParameterConverters(ParameterConverters parameterConverters)

getStartingWordsByType

public Map<StepType,String> getStartingWordsByType()

keywords

public KeyWords keywords()

useKeywords

public void useKeywords(KeyWords keywords)


Copyright © 2003-2010. All Rights Reserved.