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 java.lang.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
 void doDryRun(boolean dryRun)
           
 boolean dryRun()
           
 java.util.Map<StepType,java.lang.String> getStartingWordsByType()
           
 Keywords keywords()
           
 StepMonitor monitor()
           
 ParameterConverters parameterConverters()
           
 com.thoughtworks.paranamer.Paranamer paranamer()
           
 StepPatternBuilder patternBuilder()
           
protected  java.util.Map<StepType,java.lang.String> startingWordsByType(Keywords keywords)
           
 StepsConfiguration useKeywords(Keywords keywords)
           
 StepsConfiguration useMonitor(StepMonitor monitor)
           
 StepsConfiguration useParameterConverters(ParameterConverters parameterConverters)
           
 StepsConfiguration useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
           
 StepsConfiguration 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 java.util.Map<StepType,java.lang.String> startingWordsByType(Keywords keywords)

patternBuilder

public StepPatternBuilder patternBuilder()

usePatternBuilder

public StepsConfiguration usePatternBuilder(StepPatternBuilder patternBuilder)

monitor

public StepMonitor monitor()

useMonitor

public StepsConfiguration useMonitor(StepMonitor monitor)

paranamer

public com.thoughtworks.paranamer.Paranamer paranamer()

useParanamer

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

parameterConverters

public ParameterConverters parameterConverters()

useParameterConverters

public StepsConfiguration useParameterConverters(ParameterConverters parameterConverters)

dryRun

public boolean dryRun()

doDryRun

public void doDryRun(boolean dryRun)

getStartingWordsByType

public java.util.Map<StepType,java.lang.String> getStartingWordsByType()

keywords

public Keywords keywords()

useKeywords

public StepsConfiguration useKeywords(Keywords keywords)


Copyright © 2003-2010. All Rights Reserved.