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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.inject.Provider<Object> private final ThreadLocal<LinkedList<MojoExecutionScope.ScopeState>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidenter()voidexit()private Collection<WeakMojoExecutionListener> private MojoExecutionScope.ScopeState<T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped) <T> void<T> voidstatic <T> com.google.inject.Provider<T> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.inject.Scope
toString
-
Field Details
-
SEEDED_KEY_PROVIDER
-
values
-
-
Constructor Details
-
MojoExecutionScope
public MojoExecutionScope()
-
-
Method Details
-
enter
public void enter() -
getScopeState
-
exit
- Throws:
MojoExecutionException
-
seed
-
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
public static <T> com.google.inject.Provider<T> seededKeyProvider() -
beforeMojoExecution
- Specified by:
beforeMojoExecutionin interfaceMojoExecutionListener- Throws:
MojoExecutionException
-
afterMojoExecutionSuccess
- Specified by:
afterMojoExecutionSuccessin interfaceMojoExecutionListener- Throws:
MojoExecutionException
-
afterExecutionFailure
- Specified by:
afterExecutionFailurein interfaceMojoExecutionListener
-
getProvidedListeners
-