Class MojoExecutionScope
- java.lang.Object
-
- org.apache.maven.execution.scope.internal.MojoExecutionScope
-
- All Implemented Interfaces:
com.google.inject.Scope,MojoExecutionListener
public class MojoExecutionScope extends java.lang.Object implements com.google.inject.Scope, MojoExecutionListener
MojoExecutionScope
-
-
Constructor Summary
Constructors Constructor Description MojoExecutionScope()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterExecutionFailure(MojoExecutionEvent event)voidafterMojoExecutionSuccess(MojoExecutionEvent event)voidbeforeMojoExecution(MojoExecutionEvent event)voidenter()voidexit()<T> com.google.inject.Provider<T>scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped)<T> voidseed(java.lang.Class<T> clazz, com.google.inject.Provider<T> value)<T> voidseed(java.lang.Class<T> clazz, T value)static <T> com.google.inject.Provider<T>seededKeyProvider()
-
-
-
Method Detail
-
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(java.lang.Class<T> clazz, com.google.inject.Provider<T> value)
-
seed
public <T> void seed(java.lang.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:
scopein interfacecom.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:
beforeMojoExecutionin interfaceMojoExecutionListener- Throws:
org.apache.maven.plugin.MojoExecutionException
-
afterMojoExecutionSuccess
public void afterMojoExecutionSuccess(MojoExecutionEvent event) throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
afterMojoExecutionSuccessin interfaceMojoExecutionListener- Throws:
org.apache.maven.plugin.MojoExecutionException
-
afterExecutionFailure
public void afterExecutionFailure(MojoExecutionEvent event)
- Specified by:
afterExecutionFailurein interfaceMojoExecutionListener
-
-