public class MojoExecutionScope extends Object implements com.google.inject.Scope, MojoExecutionListener
Constructor and Description |
---|
MojoExecutionScope() |
Modifier and Type | Method and Description |
---|---|
void |
afterExecutionFailure(MojoExecutionEvent event) |
void |
afterMojoExecutionSuccess(MojoExecutionEvent event) |
void |
beforeMojoExecution(MojoExecutionEvent event) |
void |
enter() |
void |
exit() |
<T> com.google.inject.Provider<T> |
scope(com.google.inject.Key<T> key,
com.google.inject.Provider<T> unscoped) |
<T> void |
seed(Class<T> clazz,
com.google.inject.Provider<T> value) |
<T> void |
seed(Class<T> clazz,
T value) |
static <T> com.google.inject.Provider<T> |
seededKeyProvider() |
public void enter()
public void exit() throws MojoExecutionException
MojoExecutionException
public <T> void seed(Class<T> clazz, com.google.inject.Provider<T> value)
public <T> void seed(Class<T> clazz, T value)
public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped)
scope
in interface com.google.inject.Scope
public static <T> com.google.inject.Provider<T> seededKeyProvider()
public void beforeMojoExecution(MojoExecutionEvent event) throws MojoExecutionException
beforeMojoExecution
in interface MojoExecutionListener
MojoExecutionException
public void afterMojoExecutionSuccess(MojoExecutionEvent event) throws MojoExecutionException
afterMojoExecutionSuccess
in interface MojoExecutionListener
MojoExecutionException
public void afterExecutionFailure(MojoExecutionEvent event)
afterExecutionFailure
in interface MojoExecutionListener
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.