Package org.eclipse.tycho.core.ee
Class ExecutionEnvironmentConfigurationImpl
- java.lang.Object
-
- org.eclipse.tycho.core.ee.ExecutionEnvironmentConfigurationImpl
-
- All Implemented Interfaces:
ExecutionEnvironmentConfiguration
public class ExecutionEnvironmentConfigurationImpl extends java.lang.Object implements ExecutionEnvironmentConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classExecutionEnvironmentConfigurationImpl.ProfileConfiguration
-
Field Summary
Fields Modifier and Type Field Description private ExecutionEnvironmentConfigurationImpl.ProfileConfiguration[]configurationsConfigurations, ordered by precedenceprivate CustomExecutionEnvironmentcustomExecutionEnvironmentprivate static java.lang.StringDEFAULT_EXECUTION_ENVIRONMENTprivate java.lang.StringeffectiveProfileNameprivate booleanignoredByResolverprivate org.codehaus.plexus.logging.Loggerloggerprivate static intPRIMARYprivate static intSECONDARY
-
Constructor Summary
Constructors Constructor Description ExecutionEnvironmentConfigurationImpl(org.codehaus.plexus.logging.Logger logger, boolean ignoredByResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckConfigurationMutable()private java.lang.StringcomputeEffectiveProfileName()ExecutionEnvironmentgetFullSpecification()Returns the execution environment specification with information needed for the build.java.lang.StringgetProfileName()Returns the name of the configured profile.booleanisCustomProfile()Returnstrueif the configured profile is not one of the known standard execution environments.booleanisIgnoredByResolver()voidoverrideProfileConfiguration(java.lang.String profileName, java.lang.String configurationOrigin)Sets the effective profile configuration.voidsetFullSpecificationForCustomProfile(java.util.List<SystemCapability> systemCapabilities)Call-back for setting the actual specification for the configured custom profile.voidsetProfileConfiguration(java.lang.String profileName, java.lang.String configurationOrigin)Sets the effective profile configuration, unless the methodExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)has been called on this instance.
-
-
-
Field Detail
-
DEFAULT_EXECUTION_ENVIRONMENT
private static final java.lang.String DEFAULT_EXECUTION_ENVIRONMENT
- See Also:
- Constant Field Values
-
PRIMARY
private static final int PRIMARY
- See Also:
- Constant Field Values
-
SECONDARY
private static final int SECONDARY
- See Also:
- Constant Field Values
-
logger
private org.codehaus.plexus.logging.Logger logger
-
configurations
private final ExecutionEnvironmentConfigurationImpl.ProfileConfiguration[] configurations
Configurations, ordered by precedence
-
effectiveProfileName
private java.lang.String effectiveProfileName
-
customExecutionEnvironment
private CustomExecutionEnvironment customExecutionEnvironment
-
ignoredByResolver
private final boolean ignoredByResolver
-
-
Method Detail
-
overrideProfileConfiguration
public void overrideProfileConfiguration(java.lang.String profileName, java.lang.String configurationOrigin) throws java.lang.IllegalStateExceptionDescription copied from interface:ExecutionEnvironmentConfigurationSets the effective profile configuration.- Specified by:
overrideProfileConfigurationin interfaceExecutionEnvironmentConfiguration- Throws:
java.lang.IllegalStateException- if the configuration has been already frozen by calling any one of the getters defined inExecutionEnvironmentConfiguration
-
setProfileConfiguration
public void setProfileConfiguration(java.lang.String profileName, java.lang.String configurationOrigin) throws java.lang.IllegalStateExceptionDescription copied from interface:ExecutionEnvironmentConfigurationSets the effective profile configuration, unless the methodExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)has been called on this instance.- Specified by:
setProfileConfigurationin interfaceExecutionEnvironmentConfiguration- Throws:
java.lang.IllegalStateException- if the configuration has been already frozen by calling any one of the getters defined inExecutionEnvironmentConfiguration
-
checkConfigurationMutable
private void checkConfigurationMutable() throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
getProfileName
public java.lang.String getProfileName()
Description copied from interface:ExecutionEnvironmentConfigurationReturns the name of the configured profile.- Specified by:
getProfileNamein interfaceExecutionEnvironmentConfiguration
-
computeEffectiveProfileName
private java.lang.String computeEffectiveProfileName()
-
isCustomProfile
public boolean isCustomProfile()
Description copied from interface:ExecutionEnvironmentConfigurationReturnstrueif the configured profile is not one of the known standard execution environments.- Specified by:
isCustomProfilein interfaceExecutionEnvironmentConfiguration
-
setFullSpecificationForCustomProfile
public void setFullSpecificationForCustomProfile(java.util.List<SystemCapability> systemCapabilities) throws java.lang.IllegalStateException
Description copied from interface:ExecutionEnvironmentConfigurationCall-back for setting the actual specification for the configured custom profile. The specification, e.g. the list of provided packages, is read from the target platform.- Specified by:
setFullSpecificationForCustomProfilein interfaceExecutionEnvironmentConfiguration- Throws:
java.lang.IllegalStateException- if the configured execution environment profile is not a custom profile- See Also:
ExecutionEnvironmentConfiguration.isCustomProfile()
-
getFullSpecification
public ExecutionEnvironment getFullSpecification() throws java.lang.IllegalStateException
Description copied from interface:ExecutionEnvironmentConfigurationReturns the execution environment specification with information needed for the build.- Specified by:
getFullSpecificationin interfaceExecutionEnvironmentConfiguration- Throws:
java.lang.IllegalStateException- if a custom execution environment profile has been configure, andExecutionEnvironmentConfiguration.setFullSpecificationForCustomProfile(List)has not been called.- See Also:
ExecutionEnvironment
-
isIgnoredByResolver
public boolean isIgnoredByResolver()
- Specified by:
isIgnoredByResolverin interfaceExecutionEnvironmentConfiguration
-
-