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.AbstractMojo
Abstract mojo that holds all the configuration parameters to specify and load
stories.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EmbedderClassLoaderReturns the EmbedderClassLoader with the classpath element of the selected scope.Finds class names, using thenewStoryFinder(), in thesearchDirectory()given specifiedincludesandexcludes.protected EmbedderControlsprotected EmbedderMonitorprotected EmbedderCreates an instance of Embedder, either usinginjectableEmbedderClass(if set) or defaulting toembedderClass.protected StoryFinderCreates an instance of StoryFinder, using thestoryFinderClassFinds story paths, using thenewStoryFinder(), in thesearchDirectory()given specifiedincludesandexcludes.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Constructor Details
-
AbstractEmbedderMojo
public AbstractEmbedderMojo()
-
-
Method Details
-
classLoader
Returns the EmbedderClassLoader with the classpath element of the selected scope.- Returns:
- An EmbedderClassLoader
-
storyPaths
Finds story paths, using thenewStoryFinder(), in thesearchDirectory()given specifiedincludesandexcludes.- Returns:
- A List of story paths found
-
classNames
Finds class names, using thenewStoryFinder(), in thesearchDirectory()given specifiedincludesandexcludes.- Returns:
- A List of class names found
-
newStoryFinder
Creates an instance of StoryFinder, using thestoryFinderClass- Returns:
- A StoryFinder
-
newEmbedder
Creates an instance of Embedder, either usinginjectableEmbedderClass(if set) or defaulting toembedderClass.- Returns:
- An Embedder
-
embedderMonitor
-
embedderControls
-