Class MojoExecutionScope
java.lang.Object
org.apache.maven.impl.di.MojoExecutionScope
org.apache.maven.execution.scope.internal.MojoExecutionScope
- All Implemented Interfaces:
com.google.inject.Scope, org.apache.maven.di.Scope, MojoExecutionListener
public class MojoExecutionScope
extends org.apache.maven.impl.di.MojoExecutionScope
implements com.google.inject.Scope, MojoExecutionListener
MojoExecutionScope
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.impl.di.MojoExecutionScope
org.apache.maven.impl.di.MojoExecutionScope.ScopeState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoid<T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped) <T> voidstatic <T> com.google.inject.Provider<T> seededKeyProvider(Class<? extends T> clazz) Methods inherited from class org.apache.maven.impl.di.MojoExecutionScope
enter, exit, getScopeState, scope, seed, seed, seededKeySupplierMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.inject.Scope
toString
-
Constructor Details
-
MojoExecutionScope
public MojoExecutionScope()
-
-
Method Details
-
seed
-
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
-
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
- Specified by:
afterExecutionFailurein interfaceMojoExecutionListener
-