org.jbehave.core.embedder
Class EmbedderMonitorDecorator

java.lang.Object
  extended by org.jbehave.core.embedder.EmbedderMonitorDecorator
All Implemented Interfaces:
EmbedderMonitor

public class EmbedderMonitorDecorator
extends Object
implements EmbedderMonitor

Decorator of EmbedderMonitor that delegates to an injected instance and allows classes extending it to override only the methods that are needed.


Constructor Summary
EmbedderMonitorDecorator(EmbedderMonitor delegate)
           
 
Method Summary
 void annotatedInstanceNotOfType(Object annotatedInstance, Class<?> type)
           
 void batchFailed(BatchFailures failures)
           
 void embeddableFailed(String name, Throwable cause)
           
 void embeddableNotConfigurable(String name)
           
 void embeddablesSkipped(List<String> classNames)
           
 void generatingMapsView(File outputDirectory, StoryMaps storyMaps, Properties viewProperties)
           
 void generatingNavigatorView(File outputDirectory, Properties viewResources)
           
 void generatingReportsView(File outputDirectory, List<String> formats, Properties viewProperties)
           
 void mappingStory(String storyPath, List<String> metaFilters)
           
 void mapsViewGenerationFailed(File outputDirectory, StoryMaps storyMaps, Properties viewProperties, Throwable cause)
           
 void metaNotAllowed(Meta meta, MetaFilter filter)
           
 void navigatorViewGenerationFailed(File outputDirectory, Properties viewResources, Throwable cause)
           
 void navigatorViewNotGenerated()
           
 void processingSystemProperties(Properties properties)
           
 void reportsViewGenerated(ReportsCount count)
           
 void reportsViewGenerationFailed(File outputDirectory, List<String> formats, Properties viewProperties, Throwable cause)
           
 void reportsViewNotGenerated()
           
 void runningEmbeddable(String name)
           
 void runningStory(String path)
           
 void storiesSkipped(List<String> storyPaths)
           
 void storyFailed(String path, Throwable cause)
           
 void storyTimeout(long durationInSecs, Story story)
           
 void systemPropertySet(String name, String value)
           
 void usingThreads(int threads)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbedderMonitorDecorator

public EmbedderMonitorDecorator(EmbedderMonitor delegate)
Method Detail

runningEmbeddable

public void runningEmbeddable(String name)
Specified by:
runningEmbeddable in interface EmbedderMonitor

embeddableFailed

public void embeddableFailed(String name,
                             Throwable cause)
Specified by:
embeddableFailed in interface EmbedderMonitor

embeddableNotConfigurable

public void embeddableNotConfigurable(String name)
Specified by:
embeddableNotConfigurable in interface EmbedderMonitor

embeddablesSkipped

public void embeddablesSkipped(List<String> classNames)
Specified by:
embeddablesSkipped in interface EmbedderMonitor

metaNotAllowed

public void metaNotAllowed(Meta meta,
                           MetaFilter filter)
Specified by:
metaNotAllowed in interface EmbedderMonitor

runningStory

public void runningStory(String path)
Specified by:
runningStory in interface EmbedderMonitor

storyFailed

public void storyFailed(String path,
                        Throwable cause)
Specified by:
storyFailed in interface EmbedderMonitor

storiesSkipped

public void storiesSkipped(List<String> storyPaths)
Specified by:
storiesSkipped in interface EmbedderMonitor

batchFailed

public void batchFailed(BatchFailures failures)
Specified by:
batchFailed in interface EmbedderMonitor

generatingReportsView

public void generatingReportsView(File outputDirectory,
                                  List<String> formats,
                                  Properties viewProperties)
Specified by:
generatingReportsView in interface EmbedderMonitor

reportsViewGenerationFailed

public void reportsViewGenerationFailed(File outputDirectory,
                                        List<String> formats,
                                        Properties viewProperties,
                                        Throwable cause)
Specified by:
reportsViewGenerationFailed in interface EmbedderMonitor

reportsViewGenerated

public void reportsViewGenerated(ReportsCount count)
Specified by:
reportsViewGenerated in interface EmbedderMonitor

reportsViewNotGenerated

public void reportsViewNotGenerated()
Specified by:
reportsViewNotGenerated in interface EmbedderMonitor

annotatedInstanceNotOfType

public void annotatedInstanceNotOfType(Object annotatedInstance,
                                       Class<?> type)
Specified by:
annotatedInstanceNotOfType in interface EmbedderMonitor

mappingStory

public void mappingStory(String storyPath,
                         List<String> metaFilters)
Specified by:
mappingStory in interface EmbedderMonitor

generatingMapsView

public void generatingMapsView(File outputDirectory,
                               StoryMaps storyMaps,
                               Properties viewProperties)
Specified by:
generatingMapsView in interface EmbedderMonitor

mapsViewGenerationFailed

public void mapsViewGenerationFailed(File outputDirectory,
                                     StoryMaps storyMaps,
                                     Properties viewProperties,
                                     Throwable cause)
Specified by:
mapsViewGenerationFailed in interface EmbedderMonitor

generatingNavigatorView

public void generatingNavigatorView(File outputDirectory,
                                    Properties viewResources)
Specified by:
generatingNavigatorView in interface EmbedderMonitor

navigatorViewGenerationFailed

public void navigatorViewGenerationFailed(File outputDirectory,
                                          Properties viewResources,
                                          Throwable cause)
Specified by:
navigatorViewGenerationFailed in interface EmbedderMonitor

navigatorViewNotGenerated

public void navigatorViewNotGenerated()
Specified by:
navigatorViewNotGenerated in interface EmbedderMonitor

processingSystemProperties

public void processingSystemProperties(Properties properties)
Specified by:
processingSystemProperties in interface EmbedderMonitor

systemPropertySet

public void systemPropertySet(String name,
                              String value)
Specified by:
systemPropertySet in interface EmbedderMonitor

storyTimeout

public void storyTimeout(long durationInSecs,
                         Story story)
Specified by:
storyTimeout in interface EmbedderMonitor

usingThreads

public void usingThreads(int threads)
Specified by:
usingThreads in interface EmbedderMonitor


Copyright © 2003-2011. All Rights Reserved.