
net.java.trueupdate.server.maven.MavenUpdateServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trueupdate-server-maven Show documentation
Show all versions of trueupdate-server-maven Show documentation
Provides a RESTful web service for diffing JARs in one or more Maven
repositories.
The newest version!
/*
* Copyright (C) 2013 Schlichtherle IT Services & Stimulus Software.
* All rights reserved. Use is subject to license terms.
*/
package net.java.trueupdate.server.maven;
import javax.annotation.concurrent.Immutable;
import javax.ws.rs.Path;
import net.java.trueupdate.artifact.spec.ArtifactResolver;
import net.java.trueupdate.jaxrs.server.AbstractUpdateServer;
/**
* An artifact update server which uses a maven artifact resolver.
* For best performance, this should be used like a singleton
* - see {@link MavenUpdateServerApplication}.
*
* @author Christian Schlichtherle
*/
@Path("/")
@Immutable
public final class MavenUpdateServer extends AbstractUpdateServer {
private final ArtifactResolver artifactResolver;
public MavenUpdateServer() {
artifactResolver = MavenUpdateServerParameters.load().artifactResolver();
}
@Override
protected ArtifactResolver artifactResolver() { return artifactResolver; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy