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.
  • Constructor Details

    • AbstractEmbedderMojo

      public AbstractEmbedderMojo()
  • Method Details

    • 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 the newStoryFinder(), in the searchDirectory() given specified includes and excludes.
      Returns:
      A List of story paths found
    • classNames

      protected List<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()