Class MojoExecutionScope

java.lang.Object
org.apache.maven.execution.scope.internal.MojoExecutionScope
All Implemented Interfaces:
com.google.inject.Scope, MojoExecutionListener

public class MojoExecutionScope extends Object implements com.google.inject.Scope, MojoExecutionListener
MojoExecutionScope
  • Constructor Details

    • MojoExecutionScope

      public MojoExecutionScope()
  • Method Details

    • enter

      public void enter()
    • exit

      public void exit() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • seed

      public <T> void seed(Class<T> clazz, com.google.inject.Provider<T> value)
    • seed

      public <T> void seed(Class<T> clazz, T value)
    • scope

      public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped)
      Specified by:
      scope in interface com.google.inject.Scope
    • seededKeyProvider

      public static <T> com.google.inject.Provider<T> seededKeyProvider()
    • beforeMojoExecution

      public void beforeMojoExecution(MojoExecutionEvent event) throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      beforeMojoExecution in interface MojoExecutionListener
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • afterMojoExecutionSuccess

      public void afterMojoExecutionSuccess(MojoExecutionEvent event) throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      afterMojoExecutionSuccess in interface MojoExecutionListener
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • afterExecutionFailure

      public void afterExecutionFailure(MojoExecutionEvent event)
      Specified by:
      afterExecutionFailure in interface MojoExecutionListener