@Named @Singleton 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() |
static com.google.inject.Module |
getScopeModule(PlexusContainer container) |
<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 MojoExecutionScope()
public void enter()
public void exit() throws MojoExecutionException
MojoExecutionException
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 static com.google.inject.Module getScopeModule(PlexusContainer container) throws ComponentLookupException
ComponentLookupException
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–2014 The Apache Software Foundation. All rights reserved.