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 
      Constructor Description
      SystemApp()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void dispose()
      Disposes of the SystemApp.
      static ModuleProjectPropCnr getModuleRoot()
      Gets the module project root container.
      static <T extends GProp<?>>
      T
      getProperty​(java.lang.String path, java.lang.Class<T> cls)
      Gets a property from the System app.
      static void loadApp​(PropFactory factory, PropMgr propMgr)
      Loads the iiziSystem.jar app.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • getModuleRoot

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

        public static void dispose()
        Disposes of the SystemApp.