Skip to content

Instantly share code, notes, and snippets.

@RX14
Created February 6, 2015 23:47
Show Gist options
  • Save RX14/9e8462d63ff1e0475580 to your computer and use it in GitHub Desktop.
Save RX14/9e8462d63ff1e0475580 to your computer and use it in GitHub Desktop.
package nova.core.deps;
import java.net.URL;
/**
* //TODO
*
* @author rx14
*/
public interface Dependency {
/**
* Gets an identifier which is specific to this type of dependency.
* <p>
* e.g. {@code maven} or {@code URL}
*
* @return the dependency type ID.
*/
String getDependencyTypeID();
/**
* Get an identifier which is specific to this dependency, this identifier
* should be the same through all versions of the dependency.
* <p>
* e.g. {@code net.novaapi.core} or a hash of the URL
*
* @return the dependency ID.
*/
String getDependencyID();
/**
* Gets an identifier that is specific to this version of the dependency.
* <p>
* e.g. {@code 1.2.3}
*
* @return the version ID.
*/
String getVersionID();
/**
* Gets a URL to download the dependency from.
*
* @return the URL to download the dependency from.
*/
URL getDownloadURL();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment