Class DAAlignmentService

  • All Implemented Interfaces:
    AlignmentService

    public class DAAlignmentService
    extends java.lang.Object
    implements AlignmentService
    An implementation of AlignmentService that uses the Dependency Analyzer service in order to get the proper aligned versions of dependencies (as well as the version of the project itself). The heavy lifting is done by DefaultTranslator.
    • Constructor Detail

      • DAAlignmentService

        public DAAlignmentService​(org.jboss.gm.common.Configuration configuration)
        Constructs a new Dependency Analyzer service with the given configuration.
        Parameters:
        configuration - holds all configuration values for the plugins
    • Method Detail

      • align

        public AlignmentService.Response align​(AlignmentService.Request request)
                                        throws org.commonjava.maven.ext.io.rest.RestException
        Performs the alignment of the given request.
        Specified by:
        align in interface AlignmentService
        Parameters:
        request - both the collected project dependencies GAVs and the project GAVs
        Returns:
        the resulting aligned dependencies from the dependency analyzer
        Throws:
        org.commonjava.maven.ext.io.rest.RestException - if an error occurs looking up the versions.