Class EclipseApplicationDistributor

java.lang.Object
com.iizix.app.builder.ApplicationDistributor
com.iizigo.app.EclipseApplicationDistributor
All Implemented Interfaces:
IAppLoader, Serializable

public class EclipseApplicationDistributor extends ApplicationDistributor
Eclipse part of the application distributor.
Author:
Christopher Mindus
See Also:
  • Constructor Details

    • EclipseApplicationDistributor

      public EclipseApplicationDistributor(PropFactory propFactory, PropMgr propMgr, PluginLoader pluginLoader, ExecutorService executorService, boolean isVerbose)
      Constructs the application compiler for the target file.
      Parameters:
      propFactory - The Property Factory.
      propMgr - The Property Manager.
      pluginLoader - The plug-in loader.
      executorService - The executor service.
      isVerbose - Verbose output.
  • Method Details

    • loadPlugins

      public 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

      Specified by:
      loadPlugins in interface IAppLoader
      Overrides:
      loadPlugins in class ApplicationDistributor
      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.
    • loadApplicationDefinition

      public void loadApplicationDefinition(IFile idistFile, AppDistributionProps dist, IProgressMonitor monitor) throws IOException, PropException, CancelException
      Loads the application definition and all required Modules into memory in Eclipse mode.
      Parameters:
      idistFile - The application distribution file.
      dist - The distribution property, null to load it from the file.
      monitor - The progress monitor.
      Throws:
      IOException - For file errors.
      PropException - For property errors.
      CancelException - If operation is canceled by user.
    • checkCanceled

      protected void checkCanceled(Object monitor) throws CancelException
      Checks if the monitor is canceled.
      Overrides:
      checkCanceled in class ApplicationDistributor
      Parameters:
      monitor - The progress monitor, or null for none.
      Throws:
      CancelException - If the operation is canceled.
    • worked

      protected void worked(Object monitor, int work)
      Ticks units of work from progress.
      Overrides:
      worked in class ApplicationDistributor
      Parameters:
      monitor - The progress monitor, or null for none.
      work - The work units count.