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 String
Classpath protocol prefix for extra license resolver to seek in classpath.protected boolean
flag to know if store was init.static final String
class-path directory where is the licenses repository.protected List
<LicenseRepository> list of available license repositories. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addRepository
(String extraResolver) void
addRepository
(URL baseURL) protected void
addRepository
(LicenseRepository repository) void
protected void
protected void
checkNotInit
(String operation) static LicenseStore
createLicenseStore
(String... extraResolver) getLicense
(String licenseName) String[]
License[]
void
init()
iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
iterator
in interfaceIterable<LicenseRepository>
-
addRepository
-
checkInit
-
checkNotInit
-