|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.util.LicenseLoader
public class LicenseLoader
can be used to aquire licenses from a known location on demand. The LicenseLoader can be initialized to first check a list of URLs to be loaded to aquire the needed license. Only if that fails (or if no URLs were configured to begin with), an upcoming dialog will enable the user to provide a location from where a final attempt is made to load the required license. If that last resort fails, too, a LicensingException to be thrown may be inevidable.
Settings.setLicenseHandler(LicenseHandler),
Settings.checkLicense(Object),
LicensingException| Constructor Summary | |
|---|---|
LicenseLoader()
Creates a new LicenseLoader object. |
|
LicenseLoader(java.util.Collection<java.net.URL> col)
Creates a new LicenseLoader object. |
|
LicenseLoader(java.net.URL url)
Creates a new LicenseLoader object. |
|
LicenseLoader(java.net.URL[] list)
Creates a new LicenseLoader object. |
|
| Method Summary | |
|---|---|
void |
aquireLicense(java.lang.Object licensee)
first checks the already known locations and tries to aquire a license from there; if that fails, a user dialog appears - allowing to choose another location. |
java.util.Vector<java.net.URL> |
getLocations()
these URLs will be used to aquire licenses on demand before user interaction may be required. |
java.awt.Component |
getParentComponent()
DOCUMENT ME! |
void |
setParentComponent(java.awt.Component c)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LicenseLoader()
public LicenseLoader(java.net.URL url)
url - DOCUMENT ME!public LicenseLoader(java.util.Collection<java.net.URL> col)
col - DOCUMENT ME!public LicenseLoader(java.net.URL[] list)
list - DOCUMENT ME!| Method Detail |
|---|
public java.awt.Component getParentComponent()
public void setParentComponent(java.awt.Component c)
c - DOCUMENT ME!public java.util.Vector<java.net.URL> getLocations()
public void aquireLicense(java.lang.Object licensee)
aquireLicense in interface LicenseHandlerlicensee - DOCUMENT ME!Settings.checkLicense(Object),
LicenseManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||