Interface IResolvableRuntimeInstallation
-
- All Superinterfaces:
Comparable<IResolvableRuntimeInstallation>
- All Known Implementing Classes:
ExecutionEnvironmentResolvable
,FixedRuntimeResolvable
,IncompatibleRuntimeResolvable
,MatchingRuntimeNotFoundResolvable
public interface IResolvableRuntimeInstallation extends Comparable<IResolvableRuntimeInstallation>
1C:Enterprise runtime installation wrapper, that can be resolved to the real installation at any time. Allows clients to provide an abstraction between UI-selection of 1C:Enteprise runtime usage and actual 1C:Enteprise runtime installation.Instances of resolvable runtime installation are intended to be used in all 1C:Enteprise runtime installation UI selections and launch-configurations.
- See Also:
ExecutionEnvironmentResolvable
,FixedRuntimeResolvable
,ResolvableRuntimeInstallationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuntimeInstallation
get()
Resolves 1C:Enterprise runtime installation to use for this resolvable installation.RuntimeInstallation
get(String... componentTypeIds)
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that have specified 1C:Enterprise runtime components.RuntimeInstallation
get(Predicate<RuntimeInstallation> filter)
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that satisfies the provided filter.RuntimeInstallation
get(Predicate<RuntimeInstallation> filter, Comparator<RuntimeInstallation> order)
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that satisfies the provided filter and additionaly maximises the provided order.String
getName()
Returns UI-representable name of the resolvable installation.String
getVersionMask()
Returns version mask of this resolvable installation.boolean
isConsistent(IResolvableRuntimeInstallation other)
Returns whether this resolvable installation is consistent with the given other resolvable installation.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getName
String getName()
Returns UI-representable name of the resolvable installation.- Returns:
- the name of the resolvable installation, never
null
-
getVersionMask
String getVersionMask()
Returns version mask of this resolvable installation.- Returns:
- version mask of this resolvable installation, never
null
-
isConsistent
boolean isConsistent(IResolvableRuntimeInstallation other)
Returns whether this resolvable installation is consistent with the given other resolvable installation. Consistents runtime installations may be used in launch operations, when need to have two consistent 1C:Enterprise installations with different types.- Parameters:
other
- the other resolvable installation, cannot benull
- Returns:
- whether this resolvable installation is consistent with the given other resolvable installation
-
get
RuntimeInstallation get() throws MatchingRuntimeNotFound
Resolves 1C:Enterprise runtime installation to use for this resolvable installation.- Returns:
- the resolved 1C:Enterprise runtime installation, never
null
- Throws:
MatchingRuntimeNotFound
- if matching 1C:Enterprise runtime installation was not found
-
get
RuntimeInstallation get(String... componentTypeIds) throws MatchingRuntimeNotFound
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that have specified 1C:Enterprise runtime components.- Parameters:
componentTypeIds
- components identifiers, cannot benull
- Returns:
- the resolved 1C:Enterprise runtime installation, never
null
- Throws:
MatchingRuntimeNotFound
- if matching 1C:Enterprise runtime installation was not found
-
get
RuntimeInstallation get(Predicate<RuntimeInstallation> filter) throws MatchingRuntimeNotFound
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that satisfies the provided filter.- Parameters:
filter
- the predicate to filter 1C:Enterprise installation, cannot benull
- Returns:
- the resolved 1C:Enterprise runtime installation, never
null
- Throws:
MatchingRuntimeNotFound
- if matching 1C:Enterprise runtime installation was not found
-
get
RuntimeInstallation get(Predicate<RuntimeInstallation> filter, Comparator<RuntimeInstallation> order) throws MatchingRuntimeNotFound
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that satisfies the provided filter and additionaly maximises the provided order.- Parameters:
filter
- the predicate to filter 1C:Enterprise installation, cannot benull
order
- the order to compare 1C:Enterprise installations, cannot benull
- Returns:
- the resolved 1C:Enterprise runtime installation, never
null
- Throws:
MatchingRuntimeNotFound
- if matching 1C:Enterprise runtime installation was not found
-
-