Package org.jbehave.mojo
Class AbstractEmbedderMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.jbehave.mojo.AbstractEmbedderMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
GenerateStoriesView,MapStoriesAsEmbeddables,MapStoriesAsPaths,ReportStepdocs,ReportStepdocsAsEmbeddables,RunStoriesAsEmbeddables,RunStoriesAsPaths,RunStoriesWithAnnotatedEmbedderRunner,UnpackViewResources
public abstract class AbstractEmbedderMojo extends org.apache.maven.plugin.AbstractMojoAbstract mojo that holds all the configuration parameters to specify and load stories.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractEmbedderMojo.MavenEmbedderMonitor
-
Constructor Summary
Constructors Constructor Description AbstractEmbedderMojo()
-
Method Summary
Modifier and Type Method Description protected EmbedderClassLoaderclassLoader()Returns the EmbedderClassLoader with the classpath element of the selected scope.protected List<String>classNames()Finds class names, using thenewStoryFinder(), in thesearchDirectory()given specifiedincludesandexcludes.protected EmbedderControlsembedderControls()protected EmbedderMonitorembedderMonitor()protected EmbeddernewEmbedder()Creates an instance of Embedder, either usinginjectableEmbedderClass(if set) or defaulting toembedderClass.protected StoryFindernewStoryFinder()Creates an instance of StoryFinder, using thestoryFinderClassprotected List<String>storyPaths()Finds story paths, using thenewStoryFinder(), in thesearchDirectory()given specifiedincludesandexcludes.-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
classLoader
protected EmbedderClassLoader classLoader()
Returns the EmbedderClassLoader with the classpath element of the selected scope.- Returns:
- An EmbedderClassLoader
-
storyPaths
protected List<String> storyPaths()
Finds story paths, using thenewStoryFinder(), in thesearchDirectory()given specifiedincludesandexcludes.- Returns:
- A List of story paths found
-
classNames
protected List<String> classNames()
Finds class names, using thenewStoryFinder(), in thesearchDirectory()given specifiedincludesandexcludes.- Returns:
- A List of class names found
-
newStoryFinder
protected StoryFinder newStoryFinder()
Creates an instance of StoryFinder, using thestoryFinderClass- Returns:
- A StoryFinder
-
newEmbedder
protected Embedder newEmbedder()
Creates an instance of Embedder, either usinginjectableEmbedderClass(if set) or defaulting toembedderClass.- Returns:
- An Embedder
-
embedderMonitor
protected EmbedderMonitor embedderMonitor()
-
embedderControls
protected EmbedderControls embedderControls()
-
-