Package com.castlabs

Class AssetLicenseLoader

    • Constructor Detail

      • AssetLicenseLoader

        public AssetLicenseLoader()
        Creates an instance of the loader that expects an asset of the name `license.lic`.
      • AssetLicenseLoader

        public AssetLicenseLoader​(String name)
        Create an instance of the loader that expects an asset of the given name.
        Parameters:
        name - the name of the license asset
    • Method Detail

      • getLicenseData

        public byte[] getLicenseData()
                              throws Exception
        Description copied from interface: LicenseLoader
        This method must find the license file and return its bytes or throw an Exception if the license data could not be loaded.
        Specified by:
        getLicenseData in interface LicenseLoader
        Returns:
        license the byte representation of the license file
        Throws:
        Exception - in case the license data could not be loaded