org.jbehave.scenario.steps
Class StepsConfiguration

java.lang.Object
  extended by org.jbehave.scenario.steps.StepsConfiguration

public class StepsConfiguration
extends java.lang.Object

Class allowing steps functionality to be fully configurable, while providing default values for most commonly-used cases.

Configuration dependencies can be provided either via constructor or via setters (called use* methods to underline that a default value of the dependency is always set, but can be overridden). 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
StepsConfiguration()
           
StepsConfiguration(KeyWords keywords)
           
StepsConfiguration(ParameterConverters converters)
           
StepsConfiguration(StepPatternBuilder patternBuilder, StepMonitor monitor, com.thoughtworks.paranamer.Paranamer paranamer, ParameterConverters parameterConverters, KeyWords keywords)
           
StepsConfiguration(StepPatternBuilder patternBuilder, StepMonitor monitor, com.thoughtworks.paranamer.Paranamer paranamer, ParameterConverters parameterConverters, java.lang.String... startingWords)
           
StepsConfiguration(java.lang.String... startingWords)
          Deprecated. Use StepsConfiguration(KeyWords)
 
Method Summary
 KeyWords getKeywords()
           
 StepMonitor getMonitor()
           
 ParameterConverters getParameterConverters()
           
 com.thoughtworks.paranamer.Paranamer getParanamer()
           
 StepPatternBuilder getPatternBuilder()
           
 java.lang.String[] getStartingWords()
          Deprecated. Use getStartingWordsByType()
 java.util.Map<StepType,java.lang.String> getStartingWordsByType()
           
protected  java.util.Map<StepType,java.lang.String> startingWordsByType(KeyWords keywords)
           
protected  java.lang.String[] startingWordsFrom(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)
           
 void useStartingWords(java.lang.String... startingWords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepsConfiguration

public StepsConfiguration()

StepsConfiguration

public StepsConfiguration(KeyWords keywords)

StepsConfiguration

public StepsConfiguration(ParameterConverters converters)

StepsConfiguration

public StepsConfiguration(StepPatternBuilder patternBuilder,
                          StepMonitor monitor,
                          com.thoughtworks.paranamer.Paranamer paranamer,
                          ParameterConverters parameterConverters,
                          KeyWords keywords)

StepsConfiguration

public StepsConfiguration(java.lang.String... startingWords)
Deprecated. Use StepsConfiguration(KeyWords)


StepsConfiguration

public StepsConfiguration(StepPatternBuilder patternBuilder,
                          StepMonitor monitor,
                          com.thoughtworks.paranamer.Paranamer paranamer,
                          ParameterConverters parameterConverters,
                          java.lang.String... startingWords)
Method Detail

startingWordsFrom

protected java.lang.String[] startingWordsFrom(KeyWords keywords)

startingWordsByType

protected java.util.Map<StepType,java.lang.String> startingWordsByType(KeyWords keywords)

getPatternBuilder

public StepPatternBuilder getPatternBuilder()

usePatternBuilder

public void usePatternBuilder(StepPatternBuilder patternBuilder)

getMonitor

public StepMonitor getMonitor()

useMonitor

public void useMonitor(StepMonitor monitor)

getParanamer

public com.thoughtworks.paranamer.Paranamer getParanamer()

useParanamer

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

getParameterConverters

public ParameterConverters getParameterConverters()

useParameterConverters

public void useParameterConverters(ParameterConverters parameterConverters)

getStartingWords

public java.lang.String[] getStartingWords()
Deprecated. Use getStartingWordsByType()


getStartingWordsByType

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

useStartingWords

public void useStartingWords(java.lang.String... startingWords)

getKeywords

public KeyWords getKeywords()

useKeyWords

public void useKeyWords(KeyWords keywords)


Copyright © 2003-2010. All Rights Reserved.