public class ContextClassLoaderEnvironmentFacet extends AbstractLogAwareFacet
log
Constructor and Description |
---|
ContextClassLoaderEnvironmentFacet(org.apache.maven.plugin.logging.Log log,
ThreadContextClassLoaderBuilder builder)
Compound constructor creating a ContextClassLoaderEnvironmentFacet wrapping the supplied data.
|
Modifier and Type | Method and Description |
---|---|
String |
getClassPathAsArgument()
Delegate method retrieving the classpath as argument from the underlying ThreadContextClassLoaderHolder.
|
void |
restore()
Restores the original Environment, implying that the change performed in
setup()
method are restored to the state before the setup method was called. |
void |
setup()
Sets up this Environment, inferring temporary changes to environment variables or conditions.
|
public ContextClassLoaderEnvironmentFacet(org.apache.maven.plugin.logging.Log log, ThreadContextClassLoaderBuilder builder)
log
- The active Maven Log.builder
- A fully set up ThreadContextClassLoaderBuilder, where the buildAndSet()
method
should not be invoked yet.ThreadContextClassLoaderBuilder
public String getClassPathAsArgument()
public void setup()
restore()
method.public void restore()
setup()
method are restored to the state before the setup method was called.Copyright © 2005–2015 MojoHaus. All rights reserved.