Package org.codehaus.mojo.license.model
Class LicenseStore
java.lang.Object
org.codehaus.mojo.license.model.LicenseStore
- All Implemented Interfaces:
Iterable<LicenseRepository>
- Since:
- 1.0
- Author:
- tchemit dev@tchemit.fr
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringClasspath protocol prefix for extra license resolver to seek in classpath.protected booleanflag to know if store was init.static final Stringclass-path directory where is the licenses repository.protected List<LicenseRepository> list of available license repositories. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddRepository(String extraResolver) voidaddRepository(URL baseURL) protected voidaddRepository(LicenseRepository repository) voidprotected voidprotected voidcheckNotInit(String operation) static LicenseStorecreateLicenseStore(String... extraResolver) getLicense(String licenseName) String[]License[]voidinit()iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
JAR_LICENSE_REPOSITORY
class-path directory where is the licenses repository.- See Also:
-
CLASSPATH_PROTOCOL
Classpath protocol prefix for extra license resolver to seek in classpath.- See Also:
-
repositories
list of available license repositories. -
init
protected boolean initflag to know if store was init.
-
-
Constructor Details
-
LicenseStore
public LicenseStore()
-
-
Method Details
-
createLicenseStore
public static LicenseStore createLicenseStore(String... extraResolver) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
init
- Throws:
IOException
-
getRepositories
-
getLicenseNames
-
getLicenses
-
getLicense
-
addRepository
- Throws:
IOException
-
addRepository
- Throws:
IOException
-
addJarRepository
- Throws:
IOException
-
addRootPackageClassPathRepository
- Throws:
IOException
-
iterator
- Specified by:
iteratorin interfaceIterable<LicenseRepository>
-
addRepository
-
checkInit
-
checkNotInit
-