Class LicenseUtils

java.lang.Object
ch.autumo.commons.utils.license.LicenseUtils

public class LicenseUtils extends Object
License Utilities -> License Handler Factory.
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
      Logger.
    • rootPath

      public static String rootPath
      ROOT path.
  • Method Details

    • createHandler

      public static LicenseHandler createHandler(boolean desktop)
      Create license handler singleton; after creation of one license handler you'll always get the same instance back by calling getHandler().
      Parameters:
      desktop - true if it runs within a desktop application (not within a console or server-side).
      Returns:
      license handler
    • getHandler

      public static LicenseHandler getHandler()
      Get license handler. Before using this method createHandler(boolean) must be called, otherwise a runtime-exception is thrown!
      Returns:
      license handler implementation