org.jscience.util.license
Interface LicenseHandler

All Known Implementing Classes:
LicenseLoader

public interface LicenseHandler

can be used to obtain a license from some source if a call to Settings.checkLicense(Object) initially fails. This callback handler could be used e.g. to try to renew a license from some well known server once the local license expired. Another alternative would be to open up a dialog where the user can select a file to import a license.

See Also:
Settings.checkLicense(Object), Settings.setLicenseHandler(LicenseHandler), LicenseManager, License

Method Summary
 void aquireLicense(java.lang.Object licensee)
          called if the first attempt to call Settings.checkLicense(Object) fails internally with a LicensingException.
 

Method Detail

aquireLicense

void aquireLicense(java.lang.Object licensee)
called if the first attempt to call Settings.checkLicense(Object) fails internally with a LicensingException. The call to Settings.checkLicense(Object) can only finish without throwing a SecurityException if this method can successfully install a valid license for the given licensee

Parameters:
licensee - DOCUMENT ME!
See Also:
Settings.checkLicense(Object), LicenseManager