Package ch.autumo.commons.utils.license
Class LicenseUtils
java.lang.Object
ch.autumo.commons.utils.license.LicenseUtils
License Utilities -> License Handler Factory.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LicenseHandler
createHandler
(boolean desktop) Create license handler singleton; after creation of one license handler you'll always get the same instance back by callinggetHandler()
.static LicenseHandler
Get license handler.
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGLogger. -
rootPath
ROOT path.
-
-
Method Details
-
createHandler
Create license handler singleton; after creation of one license handler you'll always get the same instance back by callinggetHandler()
.- Parameters:
desktop
- true if it runs within a desktop application (not within a console or server-side).- Returns:
- license handler
-
getHandler
Get license handler. Before using this methodcreateHandler(boolean)
must be called, otherwise a runtime-exception is thrown!- Returns:
- license handler implementation
-