Interface DependencyDescriptorMediator
-
- All Known Subinterfaces:
ModuleDescriptor,WorkspaceModuleDescriptor
- All Known Implementing Classes:
DefaultModuleDescriptor,DefaultWorkspaceModuleDescriptor,OverrideDependencyDescriptorMediator,PomModuleDescriptorBuilder.PomModuleDescriptor
public interface DependencyDescriptorMediatorA DependencyDescriptorMediator is responsible for dependency descriptor mediation.Dependency descriptor mediation consists in adjusting dependency descriptors according to a context, environment, the stack of dependers, ...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DependencyDescriptormediate(DependencyDescriptor dd)Mediates the givenDependencyDescriptoraccording to thisModuleDescriptor.
-
-
-
Method Detail
-
mediate
DependencyDescriptor mediate(DependencyDescriptor dd)
Mediates the givenDependencyDescriptoraccording to thisModuleDescriptor.This method gives the opportunity to a ModuleDescriptor to override dependency version information of any of its transitive dependencies, since it is called by dependency resolvers before actually resolving a dependency.
- Parameters:
dd- the dependency descriptor which should be mediated.- Returns:
- the mediated
DependencyDescriptor, or the originalDependencyDescriptorif no mediation is required by this ModuleDescriptor.
-
-