com.caucho.server.webapp
Class WebAppEarDeployGenerator

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

public class WebAppEarDeployGenerator
extends DeployGenerator<WebAppController>

The generator for the ear deploy


Constructor Summary
WebAppEarDeployGenerator(DeployContainer<WebAppController> deployContainer, WebAppContainer container, EarDeployGenerator earDeploy)
          Creates the new host deploy.
 
Method Summary
protected  void destroyImpl()
          Destroy the deployment.
 void generateController(java.lang.String name, java.util.ArrayList<WebAppController> list)
          Returns the current array of webApp entries.
 WebAppContainer getContainer()
          Gets the webApp container.
protected  java.util.logging.Logger getLog()
          Returns the log.
 java.lang.String getURLPrefix()
          Gets the url prefix.
 boolean isModified()
          Return true if modified.
 boolean logModified(java.util.logging.Logger log)
          Log the modification
 void setContainer(WebAppContainer container)
          Sets the webApp container.
 void setParentClassLoader(java.lang.ClassLoader loader)
          Sets the parent loader.
 void setURLPrefix(java.lang.String prefix)
          Sets the url prefix.
protected  void startImpl()
          Starts the deployment.
protected  void stopImpl()
          Destroy the deployment.
 java.lang.String toString()
           
 void update()
          Redeploys if modified.
 
Methods inherited from class com.caucho.env.deploy.DeployGenerator
destroy, environmentBind, environmentConfigure, environmentStart, environmentStop, fillDeployedNames, getConfigException, getDeployContainer, getParentClassLoader, getRedeployMode, getStartupMode, getState, init, initImpl, isActive, isDestroyed, mergeController, setRedeployMode, setStartupMode, start, stop, updateIfModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebAppEarDeployGenerator

public WebAppEarDeployGenerator(DeployContainer<WebAppController> deployContainer,
                                WebAppContainer container,
                                EarDeployGenerator earDeploy)
                         throws java.lang.Exception
Creates the new host deploy.

Throws:
java.lang.Exception
Method Detail

getContainer

public WebAppContainer getContainer()
Gets the webApp container.


setContainer

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


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.


getLog

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

Overrides:
getLog in class DeployGenerator<WebAppController>

startImpl

protected void startImpl()
Starts the deployment.

Overrides:
startImpl in class DeployGenerator<WebAppController>

isModified

public boolean isModified()
Return true if modified.

Specified by:
isModified in interface Dependency
Overrides:
isModified in class DeployGenerator<WebAppController>

logModified

public boolean logModified(java.util.logging.Logger log)
Log the modification

Specified by:
logModified in interface Dependency
Overrides:
logModified in class DeployGenerator<WebAppController>

update

public void update()
Redeploys if modified.

Overrides:
update in class DeployGenerator<WebAppController>

generateController

public void generateController(java.lang.String name,
                               java.util.ArrayList<WebAppController> list)
Returns the current array of webApp entries.

Overrides:
generateController in class DeployGenerator<WebAppController>

stopImpl

protected void stopImpl()
Destroy the deployment.

Overrides:
stopImpl 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>