DependencyModifier@Incubating public abstract static class PlatformDependencyModifiers.EnforcedPlatformDependencyModifier extends java.lang.Object implements DependencyModifier
modify(ModuleDependency)| Constructor | Description |
|---|---|
EnforcedPlatformDependencyModifier() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract ObjectFactory |
getObjectFactory() |
Injected service to create named objects.
|
<D extends ModuleDependency> |
modify(D dependency) |
Takes a given
ModuleDependency and modifies the dependency to select the variant of the given module. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDependencyFactory, modify, modify, modify@Inject protected abstract ObjectFactory getObjectFactory()
public <D extends ModuleDependency> D modify(D dependency)
ModuleDependency and modifies the dependency to select the variant of the given module. Dependency resolution may fail if the given module does not have a compatible variant.
modify in interface DependencyModifierD - the type of the ModuleDependencydependency - the dependency to modify