Package com.iizigo.app
Class EclipseApplicationDistributor
- java.lang.Object
- com.iizix.app.builder.ApplicationDistributor
- com.iizigo.app.EclipseApplicationDistributor
 
 
- All Implemented Interfaces:
- IAppLoader,- java.io.Serializable
 - public class EclipseApplicationDistributor extends ApplicationDistributor Eclipse part of the application distributor.- Author:
- Christopher Mindus
- See Also:
- Serialized Form
 
- Field Summary- Fields inherited from class com.iizix.app.builder.ApplicationDistributor- appCnr, CREATED_BY, dist, FILENAME, modules, propFactory
 
 - Constructor Summary- Constructors - Constructor - Description - EclipseApplicationDistributor(PropFactory propFactory, PropMgr propMgr, PluginLoader pluginLoader, java.util.concurrent.ExecutorService executorService, boolean isVerbose)Constructs the application compiler for the target file.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - protected void- checkCanceled(java.lang.Object monitor)Checks if the monitor is canceled.- void- loadApplicationDefinition(org.eclipse.core.resources.IFile idistFile, AppDistributionProps dist, org.eclipse.core.runtime.IProgressMonitor monitor)Loads the application definition and all required Modules into memory in Eclipse mode.- java.util.List<IPluginDescriptor<?>>- loadPlugins(java.lang.String names)Loads required plug-in's.- protected void- worked(java.lang.Object monitor, int work)Ticks units of work from progress.- Methods inherited from class com.iizix.app.builder.ApplicationDistributor- addOperation, createJar, createResourceOperations, dispose, getDestinationJar, getExecutorService, getPropertyManager, initializeLicenseSystem, initializeLicenseSystem, loadApplicationDefinition, loadFile, loadFile, loadFile, loadModule, resolveReferences, verifyModules
 
 
- 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.IPluginDescriptoravailable.- 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:
- loadPluginsin interface- IAppLoader
- Overrides:
- loadPluginsin 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, CancelExceptionLoads 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.
 
 - checkCanceled- protected void checkCanceled(java.lang.Object monitor) throws CancelExceptionChecks if the monitor is canceled.- Overrides:
- checkCanceledin class- ApplicationDistributor
- Parameters:
- monitor- The progress monitor, or null for none.
- Throws:
- CancelException- If the operation is canceled.
 
 - worked- protected void worked(java.lang.Object monitor, int work)Ticks units of work from progress.- Overrides:
- workedin class- ApplicationDistributor
- Parameters:
- monitor- The progress monitor, or null for none.
- work- The work units count.