com.componio.jlicensure.server
Interface LicenseGrant


public interface LicenseGrant

LicenseGrant interface.


Method Summary
 boolean isAllowed(LicenseRequest request)
          Should a license be granted for the given request?
 void licenseGranted(License license)
          Notify about a license being granted
 void setLicensureServer(JLicensureServer server)
          Set the licensure server instance.
 

Method Detail

isAllowed

boolean isAllowed(LicenseRequest request)
Should a license be granted for the given request?

Parameters:
request - a license request
Returns:
true if license should be granted

licenseGranted

void licenseGranted(License license)
Notify about a license being granted

Parameters:
license - a license that has been granted

setLicensureServer

void setLicensureServer(JLicensureServer server)
Set the licensure server instance. This method is called prior to any other method of this interface.