com.vaadin.tools
Class CvalAddonsChecker

java.lang.Object
  extended by com.vaadin.tools.CvalAddonsChecker

public final class CvalAddonsChecker
extends java.lang.Object

This class is able to visit all MANIFEST.MF files present in the classpath, filter by name, and check if the user has a valid license. Manifest files should have a few attributes indicating the license type of the addon:

The class also have a method to check just one product.

Since:
7.3

Field Summary
static java.lang.String VAADIN_ADDON_LICENSE
           
static java.lang.String VAADIN_ADDON_NAME
           
static java.lang.String VAADIN_ADDON_TITLE
           
static java.lang.String VAADIN_ADDON_VERSION
           
static java.lang.String VAADIN_ADDON_WIDGETSET
           
static java.lang.String VAADIN_AGPL
           
static java.lang.String VAADIN_CVAL
           
 
Constructor Summary
CvalAddonsChecker()
          The constructor.
 
Method Summary
 java.util.List<com.vaadin.client.metadata.ConnectorBundleLoader.CValUiInfo> run()
          Visit all MANIFEST.MF files in the classpath validating licenses.
 CvalAddonsChecker setFilter(java.lang.String regexp)
          Set the filter regexp of .jar names which we have to consider.
protected  CvalAddonsChecker setLicenseProvider(CvalChecker.CvalServer p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VAADIN_ADDON_LICENSE

public static final java.lang.String VAADIN_ADDON_LICENSE
See Also:
Constant Field Values

VAADIN_ADDON_NAME

public static final java.lang.String VAADIN_ADDON_NAME
See Also:
Constant Field Values

VAADIN_ADDON_WIDGETSET

public static final java.lang.String VAADIN_ADDON_WIDGETSET
See Also:
Constant Field Values

VAADIN_ADDON_VERSION

public static final java.lang.String VAADIN_ADDON_VERSION
See Also:
Constant Field Values

VAADIN_ADDON_TITLE

public static final java.lang.String VAADIN_ADDON_TITLE
See Also:
Constant Field Values

VAADIN_AGPL

public static final java.lang.String VAADIN_AGPL
See Also:
Constant Field Values

VAADIN_CVAL

public static final java.lang.String VAADIN_CVAL
See Also:
Constant Field Values
Constructor Detail

CvalAddonsChecker

public CvalAddonsChecker()
The constructor.

Method Detail

run

public java.util.List<com.vaadin.client.metadata.ConnectorBundleLoader.CValUiInfo> run()
                                                                                throws CvalChecker.InvalidCvalException
Visit all MANIFEST.MF files in the classpath validating licenses. Return a list of Cval licensed products in order to have enough info to generate nag messages in the UI.

Throws:
CvalChecker.InvalidCvalException

setFilter

public CvalAddonsChecker setFilter(java.lang.String regexp)
Set the filter regexp of .jar names which we have to consider. default is '.*touchkit.*'


setLicenseProvider

protected CvalAddonsChecker setLicenseProvider(CvalChecker.CvalServer p)


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.