Class EclipseApplicationDistributor

    • Constructor Detail

      • EclipseApplicationDistributor

        public EclipseApplicationDistributor​(PropFactory propFactory,
                                             PropMgr propMgr,
                                             PluginLoader pluginLoader,
                                             java.util.concurrent.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 Detail

      • loadPlugins

        public 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

        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:
        java.io.IOException - If a plug-in failed to load.
      • loadApplicationDefinition

        public void loadApplicationDefinition​(org.eclipse.core.resources.IFile idistFile,
                                              AppDistributionProps dist,
                                              org.eclipse.core.runtime.IProgressMonitor monitor)
                                       throws java.io.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:
        java.io.IOException - For file errors.
        PropException - For property errors.
        CancelException - If operation is canceled by user.
      • worked

        protected void worked​(java.lang.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.