public class ExecutionEnvironmentConfigurationImpl extends java.lang.Object implements ExecutionEnvironmentConfiguration
Modifier and Type | Class and Description |
---|---|
private static class |
ExecutionEnvironmentConfigurationImpl.ProfileConfiguration |
Modifier and Type | Field and Description |
---|---|
private ExecutionEnvironmentConfigurationImpl.ProfileConfiguration[] |
configurations
Configurations, ordered by precedence
|
private CustomExecutionEnvironment |
customExecutionEnvironment |
private static java.lang.String |
DEFAULT_EXECUTION_ENVIRONMENT |
private java.lang.String |
effectiveProfileName |
private boolean |
ignoredByResolver |
private org.codehaus.plexus.logging.Logger |
logger |
private static int |
PRIMARY |
private static int |
SECONDARY |
Constructor and Description |
---|
ExecutionEnvironmentConfigurationImpl(org.codehaus.plexus.logging.Logger logger,
boolean ignoredByResolver) |
Modifier and Type | Method and Description |
---|---|
private void |
checkConfigurationMutable() |
private java.lang.String |
computeEffectiveProfileName() |
ExecutionEnvironment |
getFullSpecification()
Returns the execution environment specification with information needed for the build.
|
java.lang.String |
getProfileName()
Returns the name of the configured profile.
|
boolean |
isCustomProfile()
Returns
true if the configured profile is not one of the known standard
execution environments. |
boolean |
isIgnoredByResolver() |
void |
overrideProfileConfiguration(java.lang.String profileName,
java.lang.String configurationOrigin)
Sets the effective profile configuration.
|
void |
setFullSpecificationForCustomProfile(java.util.List<SystemCapability> systemCapabilities)
Call-back for setting the actual specification for the configured custom profile.
|
void |
setProfileConfiguration(java.lang.String profileName,
java.lang.String configurationOrigin)
Sets the effective profile configuration, unless the method
ExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String) has been called on this instance. |
private static final java.lang.String DEFAULT_EXECUTION_ENVIRONMENT
private static final int PRIMARY
private static final int SECONDARY
private org.codehaus.plexus.logging.Logger logger
private final ExecutionEnvironmentConfigurationImpl.ProfileConfiguration[] configurations
private java.lang.String effectiveProfileName
private CustomExecutionEnvironment customExecutionEnvironment
private final boolean ignoredByResolver
public ExecutionEnvironmentConfigurationImpl(org.codehaus.plexus.logging.Logger logger, boolean ignoredByResolver)
public void overrideProfileConfiguration(java.lang.String profileName, java.lang.String configurationOrigin) throws java.lang.IllegalStateException
ExecutionEnvironmentConfiguration
overrideProfileConfiguration
in interface ExecutionEnvironmentConfiguration
java.lang.IllegalStateException
- if the configuration has been already frozen by calling any one of the getters
defined in ExecutionEnvironmentConfiguration
public void setProfileConfiguration(java.lang.String profileName, java.lang.String configurationOrigin) throws java.lang.IllegalStateException
ExecutionEnvironmentConfiguration
ExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)
has been called on this instance.setProfileConfiguration
in interface ExecutionEnvironmentConfiguration
java.lang.IllegalStateException
- if the configuration has been already frozen by calling any one of the getters
defined in ExecutionEnvironmentConfiguration
private void checkConfigurationMutable() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public java.lang.String getProfileName()
ExecutionEnvironmentConfiguration
getProfileName
in interface ExecutionEnvironmentConfiguration
private java.lang.String computeEffectiveProfileName()
public boolean isCustomProfile()
ExecutionEnvironmentConfiguration
true
if the configured profile is not one of the known standard
execution environments.isCustomProfile
in interface ExecutionEnvironmentConfiguration
public void setFullSpecificationForCustomProfile(java.util.List<SystemCapability> systemCapabilities) throws java.lang.IllegalStateException
ExecutionEnvironmentConfiguration
setFullSpecificationForCustomProfile
in interface ExecutionEnvironmentConfiguration
java.lang.IllegalStateException
- if the configured execution environment profile is not a custom profileExecutionEnvironmentConfiguration.isCustomProfile()
public ExecutionEnvironment getFullSpecification() throws java.lang.IllegalStateException
ExecutionEnvironmentConfiguration
getFullSpecification
in interface ExecutionEnvironmentConfiguration
java.lang.IllegalStateException
- if a custom execution environment profile has been configure, and
ExecutionEnvironmentConfiguration.setFullSpecificationForCustomProfile(List)
has not been called.ExecutionEnvironment
public boolean isIgnoredByResolver()
isIgnoredByResolver
in interface ExecutionEnvironmentConfiguration