org.nuiton.license
Class LicenseFactory

java.lang.Object
  extended by org.nuiton.license.LicenseFactory

Deprecated. since 1.0.3, move all license stuff in maven-license-plugin (removed in 1.1.0)

@Deprecated
public class LicenseFactory
extends Object

Class responsible of instanciate License.

The factory use a table of resolvers to lookup for licenses.

To obtain an instance of a LicenseFactory use the method newInstance(String[]).

Author:
chemit

Field Summary
protected  List<LicenseResolver> resolvers
          Deprecated.  
 
Constructor Summary
protected LicenseFactory()
          Deprecated.  
 
Method Summary
 void addResolver(LicenseResolver licenseResolver)
          Deprecated.  
 Map<String,String> getLicenseNames()
          Deprecated.  
static LicenseFactory newInstance(String... extraResolvers)
          Deprecated.  
 License revolv(String licenseName)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolvers

protected List<LicenseResolver> resolvers
Deprecated. 
Constructor Detail

LicenseFactory

protected LicenseFactory()
                  throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException
Method Detail

newInstance

public static LicenseFactory newInstance(String... extraResolvers)
                                  throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException

addResolver

public void addResolver(LicenseResolver licenseResolver)
Deprecated. 

getLicenseNames

public Map<String,String> getLicenseNames()
                                   throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException

revolv

public License revolv(String licenseName)
               throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException


Copyright © 2009 CodeLutin. All Rights Reserved.