21 lines
1.3 KiB
Java
21 lines
1.3 KiB
Java
|
|
package com.foundation.web.interfaces;
|
||
|
|
|
||
|
|
import java.io.File;
|
||
|
|
import java.util.Properties;
|
||
|
|
|
||
|
|
public interface IWebApplicationFactory {
|
||
|
|
/**
|
||
|
|
* Creates a web application instance.
|
||
|
|
* @param baseDirectory The base directory for the webapp's static resources.
|
||
|
|
* @param externalBaseDirectory The optional external base directory for additional static resources not deployed with the webapp (specific to the server).
|
||
|
|
* @param cacheBaseDirectory The optional base directory where cache files should be stored. Cache files are those that like external files are generated during the run of the web server, but unlike external files can be deleted at any time and recreated as needed. These files, unlike external files, should never be backed up.
|
||
|
|
* @param log The logger provided by the web server which can be used to log via the server's UI.
|
||
|
|
* @param appProperties The property map containing custom properties for the web application.
|
||
|
|
* @return The web application.
|
||
|
|
*/
|
||
|
|
public IWebApplication[] createWebApplications(File baseDirectory, File externalBaseDirectory, File cacheBaseDirectory, IAppLog log, Properties appProperties);
|
||
|
|
/**
|
||
|
|
* Provides the factory a chance to shutdown any shared resources between the web applications, such as an Application class or thread service.
|
||
|
|
*/
|
||
|
|
public void shutdown();
|
||
|
|
}//IWebApplicationFactory//
|