public class RuleBasedTargetPlatformResolver extends Object implements TargetPlatformResolver
TargetPlatformResolver
that creates Platform
from PlatformRule
for RuleBasedTargetConfiguration
.
Note that the clients of this class need to make sure the queries are made with the correct target configuration type.
Constructor and Description |
---|
RuleBasedTargetPlatformResolver(PlatformResolver platformResolver) |
Modifier and Type | Method and Description |
---|---|
Platform |
getTargetPlatform(TargetConfiguration targetConfiguration,
DependencyStack dependencyStack) |
public RuleBasedTargetPlatformResolver(PlatformResolver platformResolver)
public Platform getTargetPlatform(TargetConfiguration targetConfiguration, DependencyStack dependencyStack)
getTargetPlatform
in interface TargetPlatformResolver
Platform
for a given TargetConfiguration
.