Interface IAppLoader

    • Method Detail

      • getExecutorService

        java.util.concurrent.ExecutorService getExecutorService()
        Gets the parallel loader ExecutorService.
      • getPropertyManager

        PropMgr getPropertyManager()
        Gets the server property manager.
      • loadFile

        PropCnr loadFile​(java.lang.String fileName,
                         java.io.InputStream inputStream)
                  throws java.io.IOException,
                         PropException
        Loads a property file.
        Parameters:
        fileName - The file name for logging.
        inputStream - The file input stream.
        Returns:
        A Property container.
        Throws:
        java.io.IOException - For file errors.
        PropException - For property errors.
      • loadFile

        PropCnr loadFile​(java.io.File file)
                  throws java.io.IOException,
                         PropException
        Loads a property file.
        Parameters:
        file - The file to load.
        Returns:
        A Property container.
        Throws:
        java.io.IOException - For file errors.
        PropException - For property errors.
      • loadPlugins

        java.util.List<IPluginDescriptor<?>> loadPlugins​(java.lang.String names)
                                                  throws java.io.IOException
        Loads required plug-in's.

        Each plug-in must have a class called "name.server.Descriptor" that implement the interface com.iizix.IPluginDescriptor available.

        The plug-in definition should be found at the "name/schema/properties.xml", but the iiziGo modules have the "iizigo" module instead of "iizix". To figure out translation of names, a class called "name.server.Descriptor" is loaded and should implement the interface

        Parameters:
        names - The plug-in name, e.g. "com.iizigo.db,com.iizigo.term,com.iizigo.ws".
        Throws:
        java.io.IOException - If a plug-in failed to load.