Class SystemApp


  • public class SystemApp
    extends java.lang.Object
    Class loading and extracting data from the "iiziSystem.jar" app that contains default information among other things.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      SystemApp() 
    • Constructor Detail

      • SystemApp

        public SystemApp()
    • Method Detail

      • loadApp

        public static void loadApp​(PropFactory factory,
                                   PropMgr propMgr)
                            throws PropException,
                                   java.io.IOException
        Loads the iiziSystem.jar app.
        Parameters:
        factory - The property factory.
        propMgr - The property manager.
        Throws:
        PropException - For property errors.
        java.io.IOException - For I/O exceptions.
      • getProperty

        public static <T extends GProp<?>> T getProperty​(java.lang.String path,
                                                         java.lang.Class<T> cls)
        Gets a property from the System app.
        Parameters:
        path - Path to the panel from the module base container.
        cls - The class.
        Returns:
        The property, or null if not found.
        Throws:
        java.lang.ClassCastException - If the property if not of the specified class.
      • getAppFactory

        public static AppFactory getAppFactory()
        Gets the SystemApp AppFactory.
        Returns:
        The AppFactory instance.
      • getModuleRoot

        public static ModuleProjectPropCnr getModuleRoot()
        Gets the module project root container.
        Returns:
        The module root container.
      • getPublicVAPIDKey

        public static java.lang.String getPublicVAPIDKey()
        Gets the VAPID public key for the SystemApp used for iiziRun.
        Returns:
        A Base64-encoded String containing an ECDSA P-256 public key that the push server will use to authenticate the server.
      • dispose

        public static void dispose()
        Disposes of the SystemApp.