Interface IAppLoader

All Known Subinterfaces:
IServer
All Known Implementing Classes:
ApplicationDistributor, EclipseApplicationDistributor, JakartaEEServer, JettyRunConfiguration, RuntimeBuilderServer, ServerShell, StandardServer

public interface IAppLoader
The Server Application Loader interface, used by the Server but also the Distribution compiler.
Author:
Christopher Mindus
  • Method Details

    • getExecutorService

      ExecutorService getExecutorService()
      Gets the parallel loader ExecutorService.
    • getPropertyManager

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

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

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

      List<IPluginDescriptor<?>> loadPlugins(String names) throws 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:
      IOException - If a plug-in failed to load.