Package com.castlabs
Class AssetLicenseLoader
java.lang.Object
com.castlabs.AssetLicenseLoader
- All Implemented Interfaces:
 LicenseLoader
Implementation of the 
LicenseLoader that will load the license file from the
 Applications assets.
 By default, the loader searches for a file with the name `license.lic`, but you can
 create an instance that expects a different name using the AssetLicenseLoader(String)
 constructor.- Since:
 - 3.0.0
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the loader that expects an asset of the name `license.lic`.AssetLicenseLoader(String name) Create an instance of the loader that expects an asset of the given name. - 
Method Summary
Modifier and TypeMethodDescriptionbyte[]This method must find the license file and return its bytes or throw an Exception if the license data could not be loaded. 
- 
Constructor Details
- 
AssetLicenseLoader
public AssetLicenseLoader()Creates an instance of the loader that expects an asset of the name `license.lic`. - 
AssetLicenseLoader
Create an instance of the loader that expects an asset of the given name.- Parameters:
 name- the name of the license asset
 
 - 
 - 
Method Details
- 
getLicenseData
Description copied from interface:LicenseLoaderThis method must find the license file and return its bytes or throw an Exception if the license data could not be loaded.- Specified by:
 getLicenseDatain interfaceLicenseLoader- Returns:
 - license the byte representation of the license file
 - Throws:
 Exception- in case the license data could not be loaded
 
 -