com.caucho.server.deploy
Class DeployContainer<C extends DeployController>

java.lang.Object
  extended by com.caucho.make.CachedDependency
      extended by com.caucho.server.deploy.DeployContainer<C>
All Implemented Interfaces:
Dependency

public class DeployContainer<C extends DeployController>
extends CachedDependency
implements Dependency

A container of deploy objects.


Nested Class Summary
 class DeployContainer.StartupPriorityComparator
           
 
Constructor Summary
DeployContainer()
          Creates the deploy container.
 
Method Summary
 void add(DeployGenerator<C> generator)
          Adds a deploy generator.
 void destroy()
          Closes the deploys.
 C findController(java.lang.String name)
          Returns the matching entry.
 java.util.ArrayList<C> getControllers()
          Returns the deployed entries.
 void init()
          Initialize the container.
 boolean isModifiedImpl()
          Returns true if the deployment has modified.
 boolean logModified(java.util.logging.Logger log)
          Logs the reason for modification.
 void remove(DeployGenerator<C> generator)
          Removes a deploy.
 void remove(java.lang.String name)
          Called to explicitly remove an entry from the cache.
 void start()
          Start the container.
 void stop()
          Closes the stop.
 java.lang.String toString()
           
 void update()
          Forces updates.
 C update(java.lang.String name)
          Callback from the DeployGenerator when the deployment changes.
 
Methods inherited from class com.caucho.make.CachedDependency
getCheckInterval, isModified, setCheckInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.vfs.Dependency
isModified
 

Constructor Detail

DeployContainer

public DeployContainer()
Creates the deploy container.

Method Detail

add

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


remove

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


isModifiedImpl

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

Specified by:
isModifiedImpl in class CachedDependency

logModified

public boolean logModified(java.util.logging.Logger log)
Logs the reason for modification.

Specified by:
logModified in interface Dependency

update

public void update()
Forces updates.


init

public void init()
Initialize the container.


start

public void start()
Start the container.


findController

public C findController(java.lang.String name)
Returns the matching entry.


getControllers

public java.util.ArrayList<C> getControllers()
Returns the deployed entries.


update

public C update(java.lang.String name)
Callback from the DeployGenerator when the deployment changes. update is only called when a deployment is added or removed, e.g. with a new .war file. The entry handles its own internal changes, e.g. a modification to a web.xml file.


remove

public void remove(java.lang.String name)
Called to explicitly remove an entry from the cache.


stop

public void stop()
Closes the stop.


destroy

public void destroy()
Closes the deploys.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object