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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.ExecutorService
getExecutorService()
Gets the parallel loader ExecutorService.PropMgr
getPropertyManager()
Gets the server property manager.PropCnr
loadFile(java.io.File file)
Loads a property file.PropCnr
loadFile(java.lang.String fileName, java.io.InputStream inputStream)
Loads a property file.java.util.List<IPluginDescriptor<?>>
loadPlugins(java.lang.String names)
Loads required plug-in's.
Method Detail
getExecutorService
java.util.concurrent.ExecutorService getExecutorService()
Gets the parallel loader ExecutorService.
getPropertyManager
PropMgr getPropertyManager()
Gets the server property manager.
loadFile
PropCnr loadFile(java.lang.String fileName, java.io.InputStream inputStream) throws java.io.IOException, PropException
Loads a property file.- Parameters:
fileName
- The file name for logging.inputStream
- The file input stream.- Returns:
- A Property container.
- Throws:
java.io.IOException
- For file errors.PropException
- For property errors.
loadFile
PropCnr loadFile(java.io.File file) throws java.io.IOException, PropException
Loads a property file.- Parameters:
file
- The file to load.- Returns:
- A Property container.
- Throws:
java.io.IOException
- For file errors.PropException
- For property errors.
loadPlugins
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.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
- 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.