org.jbehave.mojo
Class AbstractEmbedderMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jbehave.mojo.AbstractEmbedderMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateStoriesView, ReportStepdocs, RunStoriesAsEmbeddables, RunStoriesAsPaths, RunStoriesWithAnnotatedEmbedderRunner

public abstract class AbstractEmbedderMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract mojo that holds all the configuration parameters to specify and load stories.

Author:
Mauro Talevi

Nested Class Summary
protected  class AbstractEmbedderMojo.MavenEmbedderMonitor
           
 
Field Summary
protected  java.lang.String annotatedEmbedderRunnerClass
          The annotated embedder runner class
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractEmbedderMojo()
           
 
Method Summary
protected  java.util.List<java.lang.String> classNames()
          Finds class names, using the newStoryFinder(), in the searchDirectory() given specified includes and excludes.
protected  EmbedderClassLoader createClassLoader()
          Creates the EmbedderClassLoader with the classpath element of the selected scope
protected  EmbedderControls embedderControls()
           
protected  EmbedderMonitor embedderMonitor()
           
protected  Embedder newEmbedder()
          Creates an instance of Embedder, either using injectableEmbedderClass (if set) or defaulting to embedderClass.
protected  StoryFinder newStoryFinder()
          Creates an instance of StoryFinder, using the storyFinderClass
protected  java.util.List<java.lang.String> storyPaths()
          Finds story paths, using the newStoryFinder(), in the searchDirectory() given specified includes and excludes.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

annotatedEmbedderRunnerClass

protected java.lang.String annotatedEmbedderRunnerClass
The annotated embedder runner class

Constructor Detail

AbstractEmbedderMojo

public AbstractEmbedderMojo()
Method Detail

createClassLoader

protected EmbedderClassLoader createClassLoader()
Creates the EmbedderClassLoader with the classpath element of the selected scope

Returns:
A EmbedderClassLoader

storyPaths

protected java.util.List<java.lang.String> storyPaths()
Finds story paths, using the newStoryFinder(), in the searchDirectory() given specified includes and excludes.

Returns:
A List of story paths found

classNames

protected java.util.List<java.lang.String> classNames()
Finds class names, using the newStoryFinder(), in the searchDirectory() given specified includes and excludes.

Returns:
A List of class names found

newStoryFinder

protected StoryFinder newStoryFinder()
Creates an instance of StoryFinder, using the storyFinderClass

Returns:
A StoryFinder

newEmbedder

protected Embedder newEmbedder()
Creates an instance of Embedder, either using injectableEmbedderClass (if set) or defaulting to embedderClass.

Returns:
An Embedder

embedderMonitor

protected EmbedderMonitor embedderMonitor()

embedderControls

protected EmbedderControls embedderControls()


Copyright © 2003-2010. All Rights Reserved.