com.caucho.server.webapp
Class WebAppSingleDeployGenerator

java.lang.Object
  extended by com.caucho.env.deploy.DeployGenerator<WebAppController>
      extended by com.caucho.server.webapp.WebAppSingleDeployGenerator
All Implemented Interfaces:
EnvironmentListener, Dependency

public class WebAppSingleDeployGenerator
extends DeployGenerator<WebAppController>
implements EnvironmentListener

The generator for the web-app deploy


Constructor Summary
WebAppSingleDeployGenerator(DeployContainer<WebAppController> deployContainer)
          Creates the new host deploy.
WebAppSingleDeployGenerator(DeployContainer<WebAppController> deployContainer, WebAppContainer container, WebAppConfig config)
          Creates the new web-app deploy.
 
Method Summary
 void addWebAppDefault(WebAppConfig config)
          Adds a default.
 void deploy()
          Initialize the deployment.
protected  void destroyImpl()
          Destroy the deployment.
protected  void fillDeployedNames(java.util.Set<java.lang.String> keys)
          Returns the deployed keys.
 void generateController(java.lang.String name, java.util.ArrayList<WebAppController> list)
          Creates a controller given the name
 java.lang.Throwable getConfigException()
           
 WebAppContainer getContainer()
          Gets the webApp container.
protected  java.util.logging.Logger getLog()
          Returns the log.
 java.lang.String getURLPrefix()
          Gets the url prefix.
protected  void initImpl()
          Initializes the controller.
 void mergeController(WebAppController controller, java.lang.String name)
          Merges the controllers.
 void setContainer(WebAppContainer container)
          Sets the webApp container.
 void setParentClassLoader(java.lang.ClassLoader loader)
          Sets the parent loader.
 void setParentWebApp(WebAppController parent)
          Sets the parent webApp.
 void setRootDirectory(Path rootDirectory)
          Sets the root directory.
 void setURLPrefix(java.lang.String prefix)
          Sets the url prefix.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.env.deploy.DeployGenerator
destroy, environmentBind, environmentConfigure, environmentStart, environmentStop, getDeployContainer, getParentClassLoader, getRedeployMode, getStartupMode, getState, init, isActive, isDestroyed, isModified, logModified, setRedeployMode, setStartupMode, start, startImpl, stop, stopImpl, update, updateIfModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.loader.EnvironmentListener
environmentBind, environmentConfigure, environmentStart, environmentStop
 

Constructor Detail

WebAppSingleDeployGenerator

public WebAppSingleDeployGenerator(DeployContainer<WebAppController> deployContainer)
Creates the new host deploy.


WebAppSingleDeployGenerator

public WebAppSingleDeployGenerator(DeployContainer<WebAppController> deployContainer,
                                   WebAppContainer container,
                                   WebAppConfig config)
Creates the new web-app deploy.

Method Detail

getContainer

public WebAppContainer getContainer()
Gets the webApp container.


setContainer

public void setContainer(WebAppContainer container)
Sets the webApp container.


setParentWebApp

public void setParentWebApp(WebAppController parent)
Sets the parent webApp.


setParentClassLoader

public void setParentClassLoader(java.lang.ClassLoader loader)
Sets the parent loader.


setURLPrefix

public void setURLPrefix(java.lang.String prefix)
Sets the url prefix.


getURLPrefix

public java.lang.String getURLPrefix()
Gets the url prefix.


setRootDirectory

public void setRootDirectory(Path rootDirectory)
Sets the root directory.


addWebAppDefault

public void addWebAppDefault(WebAppConfig config)
Adds a default.


getLog

protected java.util.logging.Logger getLog()
Returns the log.

Overrides:
getLog in class DeployGenerator<WebAppController>

initImpl

protected void initImpl()
Initializes the controller.

Overrides:
initImpl in class DeployGenerator<WebAppController>

fillDeployedNames

protected void fillDeployedNames(java.util.Set<java.lang.String> keys)
Returns the deployed keys.

Overrides:
fillDeployedNames in class DeployGenerator<WebAppController>

generateController

public void generateController(java.lang.String name,
                               java.util.ArrayList<WebAppController> list)
Creates a controller given the name

Overrides:
generateController in class DeployGenerator<WebAppController>

mergeController

public void mergeController(WebAppController controller,
                            java.lang.String name)
Merges the controllers.

Overrides:
mergeController in class DeployGenerator<WebAppController>

deploy

public void deploy()
Initialize the deployment.


getConfigException

public java.lang.Throwable getConfigException()
Overrides:
getConfigException in class DeployGenerator<WebAppController>

destroyImpl

protected void destroyImpl()
Destroy the deployment.

Overrides:
destroyImpl in class DeployGenerator<WebAppController>

toString

public java.lang.String toString()
Overrides:
toString in class DeployGenerator<WebAppController>