public class ExecutionEnvironmentConfigurationImpl extends Object implements ExecutionEnvironmentConfiguration
Constructor and Description |
---|
ExecutionEnvironmentConfigurationImpl(org.codehaus.plexus.logging.Logger logger,
boolean ignoredByResolver) |
Modifier and Type | Method and Description |
---|---|
ExecutionEnvironment |
getFullSpecification()
Returns the execution environment specification with information needed for the build.
|
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(String profileName,
String configurationOrigin)
Sets the effective profile configuration.
|
void |
setFullSpecificationForCustomProfile(List<SystemCapability> systemCapabilities)
Call-back for setting the actual specification for the configured custom profile.
|
void |
setProfileConfiguration(String profileName,
String configurationOrigin)
Sets the effective profile configuration, unless the method
ExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String) has been called on this instance. |
public ExecutionEnvironmentConfigurationImpl(org.codehaus.plexus.logging.Logger logger, boolean ignoredByResolver)
public void overrideProfileConfiguration(String profileName, String configurationOrigin) throws IllegalStateException
ExecutionEnvironmentConfiguration
overrideProfileConfiguration
in interface ExecutionEnvironmentConfiguration
IllegalStateException
- if the configuration has been already frozen by calling any one of the getters
defined in ExecutionEnvironmentConfiguration
public void setProfileConfiguration(String profileName, String configurationOrigin) throws IllegalStateException
ExecutionEnvironmentConfiguration
ExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)
has been called on this instance.setProfileConfiguration
in interface ExecutionEnvironmentConfiguration
IllegalStateException
- if the configuration has been already frozen by calling any one of the getters
defined in ExecutionEnvironmentConfiguration
public String getProfileName()
ExecutionEnvironmentConfiguration
getProfileName
in interface ExecutionEnvironmentConfiguration
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(List<SystemCapability> systemCapabilities) throws IllegalStateException
ExecutionEnvironmentConfiguration
setFullSpecificationForCustomProfile
in interface ExecutionEnvironmentConfiguration
IllegalStateException
- if the configured execution environment profile is not a custom profileExecutionEnvironmentConfiguration.isCustomProfile()
public ExecutionEnvironment getFullSpecification() throws IllegalStateException
ExecutionEnvironmentConfiguration
getFullSpecification
in interface ExecutionEnvironmentConfiguration
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
Copyright © 2008–2019 Eclipse Foundation. All rights reserved.