public interface TargetPlatformService
TargetPlatformService allows access to the TargetPlatform used to resolve
dependencies.-
Method Summary
Modifier and TypeMethodDescriptionvoidclearTargetPlatform(ReactorProject reactorProject) Clears the given target platform for this projectgetTargetPlatform(ReactorProject project)
-
Method Details
-
getTargetPlatform
- Returns:
- the target platform for current calling context or an empty optional if the calling context do not has one.
- Throws:
DependencyResolutionException- when the target platform for the project can not be resolved
-
getTargetPlatform
Optional<TargetPlatform> getTargetPlatform(ReactorProject project) throws DependencyResolutionException - Parameters:
project- the project for what theTargetPlatformshould be queried- Returns:
- the target platform for the given
ReactorProjector an empty optional if the project do not has one (e.g. is not a Tycho project type) - Throws:
DependencyResolutionException- when the target platform for the project can not be resolved
-
clearTargetPlatform
Clears the given target platform for this project- Parameters:
reactorProject- the project for what theTargetPlatformshould be cleared
-