public abstract class LicenseReader extends Object
Modifier and Type | Method and Description |
---|---|
static org.springframework.core.io.ClassPathResource |
getDefaultClasspathLicenseResource()
Returns a resource representing the default location of the license file on the classpath.
|
static org.springframework.core.io.FileSystemResource |
getDefaultFileSystemLicenseResource()
Returns a resource representing the default location of the license file on the file system.
|
static License |
readLicense(org.springframework.core.io.Resource licenseResource)
Reads the license file from the given resource.
|
static License |
readLicenseFromDefaultClasspathLocation()
Reads the license file from the default location on the classpath.
|
static License |
readLicenseFromDefaultFileSystemLocation()
Reads the license file from the default location on the file system.
|
public static org.springframework.core.io.FileSystemResource getDefaultFileSystemLicenseResource()
public static org.springframework.core.io.ClassPathResource getDefaultClasspathLicenseResource()
public static License readLicenseFromDefaultFileSystemLocation() throws LicenseInvalidException, IOException
IOException
- thrown if an error occurs while reading the license fileLicenseInvalidException
- if the license is invalidpublic static License readLicenseFromDefaultClasspathLocation() throws LicenseInvalidException, IOException
IOException
- thrown if an error occurs while reading the license fileLicenseInvalidException
- if the license is invalidpublic static License readLicense(org.springframework.core.io.Resource licenseResource) throws LicenseInvalidException, IOException
licenseResource
- the license resourceIOException
- thrown if an error occurs while reading the license fileLicenseInvalidException
- if the license is invalidCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.