com.caucho.server.webapp
Class WebAppExpandDeployGenerator

java.lang.Object
  extended by com.caucho.env.deploy.DeployGenerator<E>
      extended by com.caucho.env.deploy.ExpandDeployGenerator<WebAppController>
          extended by com.caucho.server.webapp.WebAppExpandDeployGenerator
All Implemented Interfaces:
DeployUpdateListener, RepositoryTagListener, EnvironmentListener, AlarmListener, Dependency, java.util.EventListener

public class WebAppExpandDeployGenerator
extends ExpandDeployGenerator<WebAppController>
implements EnvironmentListener

The generator for the web-app deploy


Constructor Summary
WebAppExpandDeployGenerator(java.lang.String id, DeployContainer<WebAppController> container, WebAppContainer webAppContainer)
          Creates the new expand deploy.
 
Method Summary
 void addWebApp(WebAppConfig config)
          Adds an overriding web-app
 void addWebAppDefault(WebAppConfig config)
          Adds a default.
protected  void afterUpdate()
           
protected  WebAppController createController(ExpandVersion version)
          Returns the new controller.
 WebAppController createVersionController(ExpandVersion version)
          Returns the new controller.
protected  void destroyImpl()
          Destroy the deployment.
protected  void fillDeployedNames(java.util.Set<java.lang.String> keys)
          Returns the deployed keys.
 WebAppContainer getContainer()
          Gets the webApp container.
 java.lang.String getId()
           
protected  java.util.logging.Logger getLog()
          Returns the log.
 java.lang.String getURLPrefix()
          Gets the url prefix.
protected  java.lang.String keyToName(java.lang.String key)
           
protected  void mergeController(WebAppController controller, java.lang.String key)
          Returns the current array of webApp entries.
protected  java.lang.String nameToKey(java.lang.String name)
           
 void setLazyInit(boolean lazyInit)
          Sets true for a lazy-init.
 void setParent(WebAppController parent)
          Sets the parent webApp.
 void setParentClassLoader(java.lang.ClassLoader loader)
          Sets the parent loader.
 void setURLPrefix(java.lang.String prefix)
          Sets the url prefix.
protected  void startImpl()
          Start the deploy.
 
Methods inherited from class com.caucho.env.deploy.ExpandDeployGenerator
addExpandCleanupFileset, addExpandPreserveFileset, addRequireFile, deploy, equals, generateController, getArchiveDirectory, getArchivePath, getConfigException, getDependencyCheckInterval, getExpandDirectory, getExpandPath, getExpandPrefix, getExpandSuffix, getExtension, getNames, getPath, getPrimaryVersion, getRepository, handleAlarm, initImpl, isDeployedKey, isModified, isVersioning, logModified, onTagChange, onUpdate, setArchiveDirectory, setDependencyCheckInterval, setEntryNamePrefix, setExpandDirectory, setExpandPath, setExpandPrefix, setExpandSuffix, setExtension, setMultiversionRouting, setPath, setVersioning, start, stop, stopImpl, toString, undeploy, update, updateIfModified, updateIfModifiedNow
 
Methods inherited from class com.caucho.env.deploy.DeployGenerator
destroy, environmentBind, environmentConfigure, environmentStart, environmentStop, getConfigException, getDeployContainer, getParentClassLoader, getRedeployMode, getStartupMode, getState, init, isActive, isDestroyed, setRedeployMode, setStartupMode, start, stop
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.loader.EnvironmentListener
environmentBind, environmentConfigure, environmentStart, environmentStop
 

Constructor Detail

WebAppExpandDeployGenerator

public WebAppExpandDeployGenerator(java.lang.String id,
                                   DeployContainer<WebAppController> container,
                                   WebAppContainer webAppContainer)
Creates the new expand deploy.

Method Detail

getId

public java.lang.String getId()
Overrides:
getId in class ExpandDeployGenerator<WebAppController>

getContainer

public WebAppContainer getContainer()
Gets the webApp container.


setParent

public void setParent(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.


setLazyInit

public void setLazyInit(boolean lazyInit)
                 throws ConfigException
Sets true for a lazy-init.

Throws:
ConfigException

addWebApp

public void addWebApp(WebAppConfig config)
Adds an overriding web-app


addWebAppDefault

public void addWebAppDefault(WebAppConfig config)
Adds a default.


getLog

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

Overrides:
getLog in class ExpandDeployGenerator<WebAppController>

fillDeployedNames

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

Overrides:
fillDeployedNames in class ExpandDeployGenerator<WebAppController>

startImpl

protected void startImpl()
Start the deploy.

Overrides:
startImpl in class ExpandDeployGenerator<WebAppController>

createController

protected WebAppController createController(ExpandVersion version)
Returns the new controller.

Specified by:
createController in class ExpandDeployGenerator<WebAppController>

createVersionController

public WebAppController createVersionController(ExpandVersion version)
Returns the new controller.


afterUpdate

protected void afterUpdate()
Overrides:
afterUpdate in class ExpandDeployGenerator<WebAppController>

mergeController

protected void mergeController(WebAppController controller,
                               java.lang.String key)
Returns the current array of webApp entries.

Overrides:
mergeController in class DeployGenerator<WebAppController>

keyToName

protected java.lang.String keyToName(java.lang.String key)
Overrides:
keyToName in class ExpandDeployGenerator<WebAppController>

nameToKey

protected java.lang.String nameToKey(java.lang.String name)
Overrides:
nameToKey in class ExpandDeployGenerator<WebAppController>

destroyImpl

protected void destroyImpl()
Destroy the deployment.

Overrides:
destroyImpl in class DeployGenerator<WebAppController>