Class AppLoader

java.lang.Object
com.tccc.kos.core.service.app.AppLoader

public class AppLoader extends Object
Class responsible for loading an application from the filesystem.
Since:
1.0
Version:
2023-01-03
  • Constructor Details

    • AppLoader

      public AppLoader()
  • Method Details

    • getAppId

      public String getAppId()
      Returns the appId from the descriptor.
    • getApp

      public Application<?> getApp()
      Returns the application that this loader loaded.
    • getAppDir

      public File getAppDir()
      Return the application directory.
    • getSectionName

      public String getSectionName()
      Return the name of the section the app was loaded from.
    • getKab

      public KabFile getKab()
      Return the kab the application was loaded from.
    • getSection

      public ResolvedManifestSection getSection()
      Return the section the application was loaded from.
    • start

      public void start()
      Start the application. When the AppLoader is returned from AppService the application class has already been created and loaded via the Aplication.load() callback. When start() is called, the application is configured and autowired before calling Application.start() which notifies the application that it is fully configured and can continue the start process.
    • addLocalization

      public void addLocalization(ResolvedManifestSection section)
      Add all localization kabs from the specified section to the localization context.
    • addUiPlugin

      public void addUiPlugin(KabFile kab)
      Add the specified KAB to the ui plugin context and localization context.
    • addUiPlugins

      public void addUiPlugins(ResolvedManifestSection section)
      Add all KAB's from the specified section to the ui plugin context and the localization context.
    • getManifestService

      public ManifestService getManifestService()
    • isStarted

      public boolean isStarted()
    • isPostStarted

      public boolean isPostStarted()
    • isStopped

      public boolean isStopped()
    • getUrlPrefix

      public String getUrlPrefix()
    • getBrokerPrefix

      public String getBrokerPrefix()
    • getAppBroker

      public AppMessageBroker getAppBroker()
    • getLocalization

      public LocalizationContext getLocalization()
    • getUiPluginCtx

      public UiPluginContext getUiPluginCtx()