Package com.iizix.server
Interface IAppLoader
- All Known Subinterfaces:
IServer
- All Known Implementing Classes:
ApplicationDistributor,EclipseApplicationDistributor,JakartaEEServer,JettyRunConfiguration,RuntimeBuilderServer,ServerShell,StandardServer
public interface IAppLoader
The Server Application Loader interface, used by the Server but also the Distribution compiler.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionGets the parallel loader ExecutorService.Gets the server property manager.Loads a property file.loadFile(String fileName, InputStream inputStream) Loads a property file.loadPlugins(String names) Loads required plug-in's.
Method Details
getExecutorService
ExecutorService getExecutorService()Gets the parallel loader ExecutorService.getPropertyManager
PropMgr getPropertyManager()Gets the server property manager.loadFile
Loads a property file.- Parameters:
fileName- The file name for logging.inputStream- The file input stream.- Returns:
- A Property container.
- Throws:
IOException- For file errors.PropException- For property errors.
loadFile
Loads a property file.- Parameters:
file- The file to load.- Returns:
- A Property container.
- Throws:
IOException- For file errors.PropException- For property errors.
loadPlugins
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
- 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.