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 Summary
ConstructorDescriptionEclipseApplicationDistributor
(PropFactory propFactory, PropMgr propMgr, PluginLoader pluginLoader, ExecutorService executorService, boolean isVerbose) Constructs the application compiler for the target file.Method Summary
Modifier and TypeMethodDescriptionprotected void
checkCanceled
(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.loadPlugins
(String names) Loads required plug-in's.protected void
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 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
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 interfaceIAppLoader
- Overrides:
loadPlugins
in classApplicationDistributor
- 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(org.eclipse.core.resources.IFile idistFile, AppDistributionProps dist, org.eclipse.core.runtime.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
Checks if the monitor is canceled.- Overrides:
checkCanceled
in classApplicationDistributor
- Parameters:
monitor
- The progress monitor, or null for none.- Throws:
CancelException
- If the operation is canceled.
worked
Ticks units of work from progress.- Overrides:
worked
in classApplicationDistributor
- Parameters:
monitor
- The progress monitor, or null for none.work
- The work units count.