public class AppDefinition extends Object
Constructor and Description |
---|
AppDefinition(String id,
String serverEnvironmentName,
File iiziAppFile,
boolean doHotDeploy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addModuleDirectory(File dir)
Adds a directory for loading.
|
void |
dispose()
Disposes of the application definition.
|
void |
disposeHotDeploy()
Disposes of the application's hot deploy.
|
WSFileProvider |
getAppSessionFileProvider()
Get the web server file provider for the application session.
|
AppFactory |
getFactory()
Gets the application factory.
|
String |
getServerEnvironmentName()
Returns the Server environment for the application.
|
boolean |
hasAppChanged()
Checks if the iiziApp has been changed and needs reload.
|
boolean |
isHotDeployEnabled()
Checks if hot deploy is used for this application.
|
void |
loadApplication(ServerShell server)
Loads the application.
|
boolean |
reload(ServerShell server,
boolean forceReload)
Reloads the application if it has changed.
|
public final String id
public AppDefinition(String id, String serverEnvironmentName, File iiziAppFile, boolean doHotDeploy)
id
- The application ID.serverEnvironmentName
- The server environment name to use, null for default.iiziAppFile
- The application file.doHotDeploy
- Hot deploy flag.public void dispose()
This method is intended to be called from the server: DO NOT CALL THIS METHOD.
public AppFactory getFactory()
public void addModuleDirectory(File dir) throws IOException
dir
- The Module directory to load.IOException
- if the directory is already added, or if the application definition is a
compiled application.public boolean hasAppChanged()
public String getServerEnvironmentName()
public void loadApplication(ServerShell server) throws PropException, IOException, ServerApplicationSetupException
IOException
- For file errors.PropException
- For property errors.ServerApplicationSetupException
- In case a plug-in fail to initialize.public boolean isHotDeployEnabled()
public boolean reload(ServerShell server, boolean forceReload) throws PropException, IOException, ServerApplicationSetupException
IOException
- For file errors.PropException
- For property errors.ServerApplicationSetupException
- In case a plug-in fail to initialize.public void disposeHotDeploy()
public WSFileProvider getAppSessionFileProvider() throws IOException
IOException
- If the directory for the application session files failed to be created.IllegalStateException
- If the application is not yet loaded or is disposed of.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.