org.apache.ivy.core.module.descriptor

Class OverrideDependencyDescriptorMediator

public class OverrideDependencyDescriptorMediator extends Object implements DependencyDescriptorMediator

DependencyDescriptorMediator used to override some dependency descriptors values, such as the branch or version of the dependency.
Constructor Summary
OverrideDependencyDescriptorMediator(String branch, String version)
Constructs a new instance.
Method Summary
StringgetBranch()
Returns the branch this mediator will give to mediated descriptors, or null if this mediator does not override branch.
StringgetVersion()
Returns the version this mediator will give to mediated descriptors, or null if this mediator does not override version.
DependencyDescriptormediate(DependencyDescriptor dd)

Constructor Detail

OverrideDependencyDescriptorMediator

public OverrideDependencyDescriptorMediator(String branch, String version)
Constructs a new instance.

Parameters: branch the branch to give to mediated dependency descriptors, null to keep the original branch. version the version to give to mediated dependency descriptors, null to keep the original one.

Method Detail

getBranch

public String getBranch()
Returns the branch this mediator will give to mediated descriptors, or null if this mediator does not override branch.

Returns: the branch this mediator will give to mediated descriptors.

getVersion

public String getVersion()
Returns the version this mediator will give to mediated descriptors, or null if this mediator does not override version.

Returns: the version this mediator will give to mediated descriptors.

mediate

public DependencyDescriptor mediate(DependencyDescriptor dd)