public interface IAppLoader
Modifier and Type | Method and Description |
---|---|
ExecutorService |
getExecutorService()
Gets the parallel loader ExecutorService.
|
PropMgr |
getPropertyManager()
Gets the server property manager.
|
PropCnr |
loadFile(File file)
Loads a property file.
|
PropCnr |
loadFile(String fileName,
InputStream inputStream)
Loads a property file.
|
List<IPluginDescriptor<?>> |
loadPlugins(String names)
Loads required plug-in's.
|
ExecutorService getExecutorService()
PropMgr getPropertyManager()
PropCnr loadFile(String fileName, InputStream inputStream) throws IOException, PropException
fileName
- The file name for logging.inputStream
- The file input stream.IOException
- For file errors.PropException
- For property errors.PropCnr loadFile(File file) throws IOException, PropException
file
- The file to load.IOException
- For file errors.PropException
- For property errors.List<IPluginDescriptor<?>> loadPlugins(String names) throws IOException
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
names
- The plug-in name, e.g. "com.iizigo.db,com.iizigo.term,com.iizigo.ws".IOException
- If a plug-in failed to load.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.