public class LicenseStore extends Object implements Iterable<LicenseRepository>
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH_PROTOCOL
Classpath protocol prefix for extra license resolver to seek in classpath.
|
protected boolean |
init
flag to know if store was init.
|
static String |
JAR_LICENSE_REPOSITORY
class-path directory where is the licenses repository.
|
protected List<LicenseRepository> |
repositories
list of available license repositories.
|
| Constructor and Description |
|---|
LicenseStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addJarRepository() |
protected void |
addRepository(LicenseRepository repository) |
void |
addRepository(String extraResolver) |
void |
addRepository(URL baseURL) |
void |
addRootPackageClassPathRepository() |
protected void |
checkInit(String operation) |
protected void |
checkNotInit(String operation) |
static LicenseStore |
createLicenseStore(org.apache.maven.plugin.logging.Log log,
String... extraResolver) |
License |
getLicense(String licenseName) |
String[] |
getLicenseNames() |
License[] |
getLicenses() |
List<LicenseRepository> |
getRepositories() |
void |
init() |
Iterator<LicenseRepository> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String JAR_LICENSE_REPOSITORY
public static final String CLASSPATH_PROTOCOL
protected List<LicenseRepository> repositories
protected boolean init
public static LicenseStore createLicenseStore(org.apache.maven.plugin.logging.Log log, String... extraResolver) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void init()
throws IOException
IOExceptionpublic List<LicenseRepository> getRepositories()
public String[] getLicenseNames()
public License[] getLicenses()
public void addRepository(String extraResolver) throws IOException
IOExceptionpublic void addRepository(URL baseURL) throws IOException
IOExceptionpublic void addJarRepository()
throws IOException
IOExceptionpublic void addRootPackageClassPathRepository()
throws IOException
IOExceptionpublic Iterator<LicenseRepository> iterator()
iterator in interface Iterable<LicenseRepository>protected void addRepository(LicenseRepository repository)
protected void checkInit(String operation)
protected void checkNotInit(String operation)
Copyright © 2010–2023. All rights reserved.