com.vaadin.tools
Class CvalAddonsChecker
java.lang.Object
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:
- Implementation-Version: 4.x.x
- AdVaaName: addon_name
- AdVaaLicen: cval, agpl, empty
- AdVaaPkg: package of the widgets in this addon
The class also have a method to check just one product.
- Since:
- 7.3
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CvalAddonsChecker
public CvalAddonsChecker()
- The constructor.
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.