public interface EnvironmentFacet
Specification for an Environment controller, which can infer a temporary and reversible change
to the environment of an executing task. Any changes performed by this Environment
must be reversible, and should be restored to their original values in the restore()
method.
EnvironmentFacets are required since the JDK tools (XJC, SchemaGen, JXC) expect certain configuration or setup to be present during their execution. For improved usability within the JAXB2-Maven-Plugin, we would like to supply all configuration to the plugin, and delegate the setting of various system-, thread-, logging- or environment properties to explicit EnvironmentFacet implementations.
Modifier and Type | Method and Description |
---|---|
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.
|
void setup()
restore()
method.void restore()
setup()
method are restored to the state before the setup method was called.Copyright © 2005–2018 MojoHaus. All rights reserved.