org.nuiton.license.plugin.repository
Class LicenseRepositoryFactory

java.lang.Object
  extended by org.nuiton.license.plugin.repository.LicenseRepositoryFactory

public class LicenseRepositoryFactory
extends java.lang.Object

Since:
1.0.3
Author:
chemit

Field Summary
static java.lang.String JAR_LICENSE_REPOSITORY
          class-path directory where is the licenses repository
 
Constructor Summary
LicenseRepositoryFactory()
           
 
Method Summary
static LicenseRepository newJarLicenseRepository(boolean load)
           
static LicenseRepository newLicenseRepository(boolean useJarRepository, boolean load, java.lang.String... extraResolvers)
          Obtain a new repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAR_LICENSE_REPOSITORY

public static final java.lang.String JAR_LICENSE_REPOSITORY
class-path directory where is the licenses repository

See Also:
Constant Field Values
Constructor Detail

LicenseRepositoryFactory

public LicenseRepositoryFactory()
Method Detail

newLicenseRepository

public static LicenseRepository newLicenseRepository(boolean useJarRepository,
                                                     boolean load,
                                                     java.lang.String... extraResolvers)
                                              throws java.lang.IllegalArgumentException,
                                                     java.io.IOException
Obtain a new repository.

Parameters:
useJarRepository - flag to use at first a jar repository
load - flag to load the repository
extraResolvers - extra baseURLs to defined extra license resolver
Returns:
the instanciate and ready to use license repository
Throws:
java.lang.IllegalArgumentException
java.io.IOException

newJarLicenseRepository

public static LicenseRepository newJarLicenseRepository(boolean load)
                                                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008-2009 CodeLutin. All Rights Reserved.