Class OverrideDependencyDescriptorMediator

  • All Implemented Interfaces:
    DependencyDescriptorMediator

    public class OverrideDependencyDescriptorMediator
    extends java.lang.Object
    implements DependencyDescriptorMediator
    DependencyDescriptorMediator used to override some dependency descriptors values, such as the branch or version of the dependency.
    • Constructor Detail

      • OverrideDependencyDescriptorMediator

        public OverrideDependencyDescriptorMediator​(java.lang.String branch,
                                                    java.lang.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

      • getVersion

        public java.lang.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.
      • getBranch

        public java.lang.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.