Class AppDefinition

  • public class AppDefinition
    extends java.lang.Object
    Application definition when loading the applications/projects.
    Christopher Mindus
    • Field Summary

      Modifier and Type Field Description
      java.lang.String id
      The ID of the application.
    • Constructor Summary

      Constructor Description
      AppDefinition​(java.lang.String id, java.lang.String serverEnvironmentName, iiziAppFile, boolean doHotDeploy)
    • Field Detail

      • id

        public final java.lang.String id
        The ID of the application.
    • Constructor Detail

      • AppDefinition

        public AppDefinition​(java.lang.String id,
                             java.lang.String serverEnvironmentName,
                             boolean doHotDeploy)
        id - The application ID.
        serverEnvironmentName - The server environment name to use, null for default.
        iiziAppFile - The application file.
        doHotDeploy - Hot deploy flag.
    • Method Detail

      • dispose

        public void dispose()
        Disposes of the application definition.

        This method is intended to be called from the server: DO NOT CALL THIS METHOD.

      • getFactory

        public AppFactory getFactory()
        Gets the application factory.
        The application factory once loaded, null otherwise.
      • addModuleDirectory

        public void addModuleDirectory​( dir)
        Adds a directory for loading.
        dir - The Module directory to load.
        Throws: - if the directory is already added, or if the application definition is a compiled application.
      • hasAppChanged

        public boolean hasAppChanged()
        Checks if the iiziApp has been changed and needs reload.
        true if app has changed and hot deploy is used, false when not changed or hot deploy is not used.
      • getServerEnvironmentName

        public java.lang.String getServerEnvironmentName()
        Returns the Server environment for the application.
      • isHotDeployEnabled

        public boolean isHotDeployEnabled()
        Checks if hot deploy is used for this application.
        true if hot deploy is enabled, false otherwise.
      • disposeHotDeploy

        public void disposeHotDeploy()
        Disposes of the application's hot deploy.
      • getAppSessionFileProvider

        public WSFileProvider getAppSessionFileProvider()
        Get the web server file provider for the application session.
        The web server file provider.
        Throws: - If the directory for the application session files failed to be created.
        java.lang.IllegalStateException - If the application is not yet loaded or is disposed of.