Package org.eclipse.tycho.core.ee.shared
Class ExecutionEnvironmentConfigurationStub
- java.lang.Object
-
- org.eclipse.tycho.core.ee.shared.ExecutionEnvironmentConfigurationStub
-
- All Implemented Interfaces:
ExecutionEnvironmentConfiguration
public class ExecutionEnvironmentConfigurationStub extends java.lang.Object implements ExecutionEnvironmentConfiguration
ExecutionEnvironmentConfiguration
instance usable for additional calls of the target platform computation and dependency resolution.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
profileName
-
Constructor Summary
Constructors Constructor Description ExecutionEnvironmentConfigurationStub(java.lang.String profileName)
Creates a newExecutionEnvironmentConfiguration
for a standalone call of the target platform computation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ExecutionEnvironment>
getAllKnownEEs()
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
ignoreExecutionEnvironment()
boolean
isCustomProfile()
Returnstrue
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 methodExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)
has been called on this instance.
-
-
-
Constructor Detail
-
ExecutionEnvironmentConfigurationStub
public ExecutionEnvironmentConfigurationStub(java.lang.String profileName)
Creates a newExecutionEnvironmentConfiguration
for a standalone call of the target platform computation.- Parameters:
profileName
- a standard execution environment
-
-
Method Detail
-
getProfileName
public java.lang.String getProfileName()
Description copied from interface:ExecutionEnvironmentConfiguration
Returns the name of the configured profile.- Specified by:
getProfileName
in interfaceExecutionEnvironmentConfiguration
-
isCustomProfile
public boolean isCustomProfile()
Description copied from interface:ExecutionEnvironmentConfiguration
Returnstrue
if the configured profile is not one of the known standard execution environments.- Specified by:
isCustomProfile
in interfaceExecutionEnvironmentConfiguration
-
setProfileConfiguration
public void setProfileConfiguration(java.lang.String profileName, java.lang.String configurationOrigin)
Description copied from interface:ExecutionEnvironmentConfiguration
Sets the effective profile configuration, unless the methodExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)
has been called on this instance.- Specified by:
setProfileConfiguration
in interfaceExecutionEnvironmentConfiguration
-
overrideProfileConfiguration
public void overrideProfileConfiguration(java.lang.String profileName, java.lang.String configurationOrigin)
Description copied from interface:ExecutionEnvironmentConfiguration
Sets the effective profile configuration.- Specified by:
overrideProfileConfiguration
in interfaceExecutionEnvironmentConfiguration
-
setFullSpecificationForCustomProfile
public void setFullSpecificationForCustomProfile(java.util.List<SystemCapability> systemCapabilities)
Description copied from interface:ExecutionEnvironmentConfiguration
Call-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:
setFullSpecificationForCustomProfile
in interfaceExecutionEnvironmentConfiguration
- See Also:
ExecutionEnvironmentConfiguration.isCustomProfile()
-
getFullSpecification
public ExecutionEnvironment getFullSpecification()
Description copied from interface:ExecutionEnvironmentConfiguration
Returns the execution environment specification with information needed for the build.- Specified by:
getFullSpecification
in interfaceExecutionEnvironmentConfiguration
- See Also:
ExecutionEnvironment
-
isIgnoredByResolver
public boolean isIgnoredByResolver()
- Specified by:
isIgnoredByResolver
in interfaceExecutionEnvironmentConfiguration
-
getAllKnownEEs
public java.util.Collection<ExecutionEnvironment> getAllKnownEEs()
- Specified by:
getAllKnownEEs
in interfaceExecutionEnvironmentConfiguration
- Returns:
- all known Execution Environments accessible for the same scope
-
ignoreExecutionEnvironment
public boolean ignoreExecutionEnvironment()
- Specified by:
ignoreExecutionEnvironment
in interfaceExecutionEnvironmentConfiguration
-
-