com.caucho.server.webapp
Class WebAppExpandDeployGenerator

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

public class WebAppExpandDeployGenerator
extends ExpandDeployGenerator<WebAppController>
implements EnvironmentListener

The generator for the web-app deploy


Constructor Summary
WebAppExpandDeployGenerator(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  WebAppController createController(java.lang.String name)
          Returns the new controller.
protected  void destroyImpl()
          Destroy the deployment.
protected  java.lang.String entryNameToArchiveName(java.lang.String entryName)
          Converts the archive name to the entry name, returns null if the archive name is not valid.
protected  void fillDeployedKeys(java.util.Set<java.lang.String> keys)
          Returns the deployed keys.
 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()
          Configuration checks on init.
protected  WebAppController mergeController(WebAppController controller, java.lang.String key)
          Returns the current array of webApp entries.
protected  java.lang.String pathNameToEntryName(java.lang.String name)
          Converts the 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.server.deploy.ExpandDeployGenerator
addRequireFile, archiveNameToEntryName, equals, generateController, getArchiveDirectory, getArchivePath, getConfigException, getDependencyCheckInterval, getExpandDirectory, getExpandName, getExpandPath, getExpandPrefix, getExpandSuffix, getExtension, getGit, getGitPath, getGitRefPath, getNames, getPath, getVersionNames, handleAlarm, isDeployedKey, isModified, isValidDirectory, isVersioning, logModified, request, setArchiveDirectory, setDependencyCheckInterval, setExpandCleanupFileset, setExpandDirectory, setExpandPath, setExpandPrefix, setExpandSuffix, setExtension, setGit, setGitPath, setPath, setVersioning, start, stop, stopImpl, toString, undeploy, update
 
Methods inherited from class com.caucho.server.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(DeployContainer<WebAppController> container,
                                   WebAppContainer webAppContainer)
Creates the new expand deploy.

Method Detail

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.


initImpl

protected void initImpl()
Description copied from class: ExpandDeployGenerator
Configuration checks on init.

Overrides:
initImpl in class ExpandDeployGenerator<WebAppController>

getLog

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

Overrides:
getLog in class ExpandDeployGenerator<WebAppController>

fillDeployedKeys

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

Overrides:
fillDeployedKeys in class ExpandDeployGenerator<WebAppController>

startImpl

protected void startImpl()
Start the deploy.

Overrides:
startImpl in class ExpandDeployGenerator<WebAppController>

createController

protected WebAppController createController(java.lang.String name)
Returns the new controller.

Specified by:
createController in class ExpandDeployGenerator<WebAppController>

mergeController

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

Overrides:
mergeController in class DeployGenerator<WebAppController>

pathNameToEntryName

protected java.lang.String pathNameToEntryName(java.lang.String name)
Converts the name.

Overrides:
pathNameToEntryName in class ExpandDeployGenerator<WebAppController>

entryNameToArchiveName

protected java.lang.String entryNameToArchiveName(java.lang.String entryName)
Description copied from class: ExpandDeployGenerator
Converts the archive name to the entry name, returns null if the archive name is not valid.

Overrides:
entryNameToArchiveName in class ExpandDeployGenerator<WebAppController>

destroyImpl

protected void destroyImpl()
Destroy the deployment.

Overrides:
destroyImpl in class DeployGenerator<WebAppController>