com.caucho.env.deploy
Class DeployListGenerator<E extends DeployControllerApi<?>>

java.lang.Object
  extended by com.caucho.env.deploy.DeployGenerator<E>
      extended by com.caucho.env.deploy.DeployListGenerator<E>
All Implemented Interfaces:
EnvironmentListener, Dependency

public class DeployListGenerator<E extends DeployControllerApi<?>>
extends DeployGenerator<E>
implements Dependency

A list of deploy objects.


Constructor Summary
DeployListGenerator(DeployContainer<E> container)
          Creates the deploy.
 
Method Summary
 void add(DeployGenerator<E> deploy)
          Adds a deploy.
protected  void destroyImpl()
          Closes the deploys.
 void fillDeployedNames(java.util.Set<java.lang.String> keys)
          Returns the deployed keys.
protected  void generateController(java.lang.String key, java.util.ArrayList<E> controllers)
          Generates the controller matching the key string.
 boolean isModified()
          Returns true if the deployment has modified.
 boolean logModified(java.util.logging.Logger log)
          Logs the modified location.
protected  void mergeController(E controller, java.lang.String key)
          Merges with other matching entries.
 void remove(DeployGenerator<E> deploy)
          Removes a deploy.
protected  void startImpl()
          Starts the deploys.
protected  void stopImpl()
          Stops the deploys.
 java.lang.String toString()
           
 void update()
          Force an update
 void updateIfModified()
          Redeploy if the deployment is modified.
 
Methods inherited from class com.caucho.env.deploy.DeployGenerator
destroy, environmentBind, environmentConfigure, environmentStart, environmentStop, getConfigException, getDeployContainer, getLog, getParentClassLoader, getRedeployMode, getStartupMode, getState, init, initImpl, isActive, isDestroyed, setRedeployMode, setStartupMode, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeployListGenerator

public DeployListGenerator(DeployContainer<E> container)
Creates the deploy.

Method Detail

add

public void add(DeployGenerator<E> deploy)
Adds a deploy.


remove

public void remove(DeployGenerator<E> deploy)
Removes a deploy.


isModified

public boolean isModified()
Returns true if the deployment has modified.

Specified by:
isModified in interface Dependency
Overrides:
isModified in class DeployGenerator<E extends DeployControllerApi<?>>

logModified

public boolean logModified(java.util.logging.Logger log)
Logs the modified location.

Specified by:
logModified in interface Dependency
Overrides:
logModified in class DeployGenerator<E extends DeployControllerApi<?>>

updateIfModified

public void updateIfModified()
Redeploy if the deployment is modified. XXX:

Overrides:
updateIfModified in class DeployGenerator<E extends DeployControllerApi<?>>

update

public void update()
Force an update

Overrides:
update in class DeployGenerator<E extends DeployControllerApi<?>>

fillDeployedNames

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

Overrides:
fillDeployedNames in class DeployGenerator<E extends DeployControllerApi<?>>

generateController

protected void generateController(java.lang.String key,
                                  java.util.ArrayList<E> controllers)
Generates the controller matching the key string.

Overrides:
generateController in class DeployGenerator<E extends DeployControllerApi<?>>

mergeController

protected void mergeController(E controller,
                               java.lang.String key)
Merges with other matching entries.

Overrides:
mergeController in class DeployGenerator<E extends DeployControllerApi<?>>

startImpl

protected void startImpl()
Starts the deploys.

Overrides:
startImpl in class DeployGenerator<E extends DeployControllerApi<?>>

stopImpl

protected void stopImpl()
Stops the deploys.

Overrides:
stopImpl in class DeployGenerator<E extends DeployControllerApi<?>>

destroyImpl

protected void destroyImpl()
Closes the deploys.

Overrides:
destroyImpl in class DeployGenerator<E extends DeployControllerApi<?>>

toString

public java.lang.String toString()
Overrides:
toString in class DeployGenerator<E extends DeployControllerApi<?>>