Module fxlauncher
Package fxlauncher

Class AbstractLauncher<APP>

java.lang.Object
fxlauncher.AbstractLauncher<APP>
Direct Known Subclasses:
HeadlessMainLauncher

public abstract class AbstractLauncher<APP> extends Object
  • Field Details

  • Constructor Details

    • AbstractLauncher

      public AbstractLauncher()
  • Method Details

    • setupLogFile

      protected void setupLogFile() throws IOException
      Make java.util.logger log to a file. Default it will log to $TMPDIR/fxlauncher.log. This can be overriden by using comman line parameter --logfile=logfile
      Throws:
      IOException
    • checkSSLIgnoreflag

      protected void checkSSLIgnoreflag() throws KeyManagementException, NoSuchAlgorithmException
      Check if the SSL connection needs to ignore the validity of the ssl certificate.
      Throws:
      KeyManagementException
      NoSuchAlgorithmException
    • createClassLoader

      protected ClassLoader createClassLoader(Path cacheDir)
    • updateManifest

      protected void updateManifest() throws Exception
      Throws:
      Exception
    • syncFiles

      protected boolean syncFiles() throws Exception
      Check if remote files are newer then local files. Return true if files are updated, triggering the whatsnew option else false. Also return false and do not check for updates if the --offline commandline argument is set.
      Returns:
      true if new files have been downloaded, false otherwise.
      Throws:
      Exception
    • createApplicationEnvironment

      protected void createApplicationEnvironment() throws Exception
      Throws:
      Exception
    • syncManifest

      protected void syncManifest() throws Exception
      Throws:
      Exception
    • setupIgnoreSSLCertificate

      protected void setupIgnoreSSLCertificate() throws NoSuchAlgorithmException, KeyManagementException
      Throws:
      NoSuchAlgorithmException
      KeyManagementException
    • checkIgnoreUpdateErrorSetting

      protected boolean checkIgnoreUpdateErrorSetting()
    • getPhase

      public String getPhase()
    • setPhase

      public void setPhase(String phase)
    • getManifest

      public FXManifest getManifest()
    • getParameters

      protected abstract javafx.application.Application.Parameters getParameters()
    • updateProgress

      protected abstract void updateProgress(double progress)
    • createApplication

      protected abstract void createApplication(Class<APP> appClass)
    • reportError

      protected abstract void reportError(String title, Throwable error)
    • setupClassLoader

      protected abstract void setupClassLoader(ClassLoader classLoader)