public abstract class Repositories extends Object
Container
.
Repositories can be organized in "sections", allowing to prioritize the list according to these groups. For example, a common scheme is to have two sections, "public" and "private".
Container.getRepositories()
Modifier and Type | Field and Description |
---|---|
static String |
REPOSITORY_SECTION_SEPARATOR |
Constructor and Description |
---|
Repositories() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
addMaven(String section,
String name,
String url)
Adds a Maven resolver.
|
abstract boolean |
addPyPi(String section,
String name,
String url)
Adds a PyPI resolver.
|
abstract Collection<Repository> |
get(String section)
The repositories in a section.
|
abstract boolean |
remove(String section,
String name)
Removes a resolver.
|
public static final String REPOSITORY_SECTION_SEPARATOR
public abstract Collection<Repository> get(String section)
section
- The section namepublic abstract boolean addMaven(String section, String name, String url) throws SincerityException
section
- The section namename
- The resolver name within the sectionurl
- The Maven root URLSincerityException
- In case of an errorpublic abstract boolean addPyPi(String section, String name, String url) throws SincerityException
section
- The section namename
- The resolver name within the sectionurl
- The PyPI root URLSincerityException
- In case of an errorpublic abstract boolean remove(String section, String name) throws SincerityException
section
- The section namename
- The resolver name within the sectionSincerityException
- In case of an errorCopyright © 2011-2016 Three Crickets LLC.