Package com.iizigo.app
Class EclipseApplicationDistributor
java.lang.Object
com.iizix.app.builder.ApplicationDistributor
com.iizigo.app.EclipseApplicationDistributor
- All Implemented Interfaces:
- IAppLoader,- Serializable
Eclipse part of the application distributor.
- Author:
- Christopher Mindus
- See Also:
- Field Summary- Fields inherited from class com.iizix.app.builder.ApplicationDistributor- appCnr, CREATED_BY, dist, FILENAME, modules, propFactory
- Constructor SummaryConstructorsConstructorDescription- EclipseApplicationDistributor- (PropFactory propFactory, PropMgr propMgr, PluginLoader pluginLoader, ExecutorService executorService, boolean isVerbose) Constructs the application compiler for the target file.
- Method SummaryModifier and TypeMethodDescription- protected void- checkCanceled- (Object monitor) Checks if the monitor is canceled.- void- loadApplicationDefinition- (IFile idistFile, AppDistributionProps dist, IProgressMonitor monitor) Loads the application definition and all required Modules into memory in Eclipse mode.- loadPlugins- (String names) Loads required plug-in's.- protected voidTicks 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 Details- EclipseApplicationDistributorpublic 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- loadPluginsLoads 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:
- IOException- If a plug-in failed to load.
 
- loadApplicationDefinitionpublic 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.
 
- checkCanceledChecks 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.
 
- workedTicks units of work from progress.- Overrides:
- workedin class- ApplicationDistributor
- Parameters:
- monitor- The progress monitor, or null for none.
- work- The work units count.