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
ExecutionEnvironmentConfigurationoverrideProfileConfiguration in interface ExecutionEnvironmentConfigurationjava.lang.IllegalStateException - if the configuration has been already frozen by calling any one of the getters
defined in ExecutionEnvironmentConfigurationpublic void setProfileConfiguration(java.lang.String profileName,
java.lang.String configurationOrigin)
throws java.lang.IllegalStateException
ExecutionEnvironmentConfigurationExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String) has been called on this instance.setProfileConfiguration in interface ExecutionEnvironmentConfigurationjava.lang.IllegalStateException - if the configuration has been already frozen by calling any one of the getters
defined in ExecutionEnvironmentConfigurationprivate void checkConfigurationMutable()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic java.lang.String getProfileName()
ExecutionEnvironmentConfigurationgetProfileName in interface ExecutionEnvironmentConfigurationprivate java.lang.String computeEffectiveProfileName()
public boolean isCustomProfile()
ExecutionEnvironmentConfigurationtrue if the configured profile is not one of the known standard
execution environments.isCustomProfile in interface ExecutionEnvironmentConfigurationpublic void setFullSpecificationForCustomProfile(java.util.List<SystemCapability> systemCapabilities) throws java.lang.IllegalStateException
ExecutionEnvironmentConfigurationsetFullSpecificationForCustomProfile in interface ExecutionEnvironmentConfigurationjava.lang.IllegalStateException - if the configured execution environment profile is not a custom profileExecutionEnvironmentConfiguration.isCustomProfile()public ExecutionEnvironment getFullSpecification() throws java.lang.IllegalStateException
ExecutionEnvironmentConfigurationgetFullSpecification in interface ExecutionEnvironmentConfigurationjava.lang.IllegalStateException - if a custom execution environment profile has been configure, and
ExecutionEnvironmentConfiguration.setFullSpecificationForCustomProfile(List) has not been called.ExecutionEnvironmentpublic boolean isIgnoredByResolver()
isIgnoredByResolver in interface ExecutionEnvironmentConfiguration