Package org.jbehave.core.steps
Class DelegatingStepMonitor
- java.lang.Object
-
- org.jbehave.core.steps.DelegatingStepMonitor
-
- All Implemented Interfaces:
StepMonitor
- Direct Known Subclasses:
ContextStepMonitor
,MatchingStepMonitor
public class DelegatingStepMonitor extends Object implements StepMonitor
Monitor which collects otherStepMonitor
s and delegates all invocations to the collected monitors.
-
-
Constructor Summary
Constructors Constructor Description DelegatingStepMonitor(Collection<StepMonitor> delegates)
Creates DelegatingStepMonitor with a given collections of delegatesDelegatingStepMonitor(StepMonitor... delegates)
Creates DelegatingStepMonitor with a given varargs of delegates
-
Method Summary
Modifier and Type Method Description void
afterPerforming(String step, boolean dryRun, Method method)
void
beforePerforming(String step, boolean dryRun, Method method)
void
convertedValueOfType(String value, Type type, Object converted, Queue<Class<?>> converterClasses)
void
foundParameter(String parameter, int position)
void
stepMatchesPattern(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance)
void
stepMatchesType(String stepAsString, String previousAsString, boolean matchesType, StepType stepType, Method method, Object stepsInstance)
void
usingAnnotatedNameForParameter(String name, int position)
void
usingNaturalOrderForParameter(int position)
void
usingParameterNameForParameter(String name, int position)
void
usingStepsContextParameter(String parameter)
void
usingTableAnnotatedNameForParameter(String name, int position)
void
usingTableParameterNameForParameter(String name, int position)
-
-
-
Constructor Detail
-
DelegatingStepMonitor
public DelegatingStepMonitor(Collection<StepMonitor> delegates)
Creates DelegatingStepMonitor with a given collections of delegates- Parameters:
delegates
- the StepMonitor-s to delegate to
-
DelegatingStepMonitor
public DelegatingStepMonitor(StepMonitor... delegates)
Creates DelegatingStepMonitor with a given varargs of delegates- Parameters:
delegates
- the StepMonitor-s to delegate to
-
-
Method Detail
-
convertedValueOfType
public void convertedValueOfType(String value, Type type, Object converted, Queue<Class<?>> converterClasses)
- Specified by:
convertedValueOfType
in interfaceStepMonitor
-
stepMatchesType
public void stepMatchesType(String stepAsString, String previousAsString, boolean matchesType, StepType stepType, Method method, Object stepsInstance)
- Specified by:
stepMatchesType
in interfaceStepMonitor
-
stepMatchesPattern
public void stepMatchesPattern(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance)
- Specified by:
stepMatchesPattern
in interfaceStepMonitor
-
foundParameter
public void foundParameter(String parameter, int position)
- Specified by:
foundParameter
in interfaceStepMonitor
-
beforePerforming
public void beforePerforming(String step, boolean dryRun, Method method)
- Specified by:
beforePerforming
in interfaceStepMonitor
-
afterPerforming
public void afterPerforming(String step, boolean dryRun, Method method)
- Specified by:
afterPerforming
in interfaceStepMonitor
-
usingAnnotatedNameForParameter
public void usingAnnotatedNameForParameter(String name, int position)
- Specified by:
usingAnnotatedNameForParameter
in interfaceStepMonitor
-
usingNaturalOrderForParameter
public void usingNaturalOrderForParameter(int position)
- Specified by:
usingNaturalOrderForParameter
in interfaceStepMonitor
-
usingParameterNameForParameter
public void usingParameterNameForParameter(String name, int position)
- Specified by:
usingParameterNameForParameter
in interfaceStepMonitor
-
usingTableAnnotatedNameForParameter
public void usingTableAnnotatedNameForParameter(String name, int position)
- Specified by:
usingTableAnnotatedNameForParameter
in interfaceStepMonitor
-
usingTableParameterNameForParameter
public void usingTableParameterNameForParameter(String name, int position)
- Specified by:
usingTableParameterNameForParameter
in interfaceStepMonitor
-
usingStepsContextParameter
public void usingStepsContextParameter(String parameter)
- Specified by:
usingStepsContextParameter
in interfaceStepMonitor
-
-