org.smartcc
Class MainDeployer

java.lang.Object
  |
  +--org.smartcc.Deployer
        |
        +--org.smartcc.MainDeployer

public class MainDeployer
extends Deployer

A main deployer, that delegates to the registered sub deployers.


Constructor Summary
MainDeployer()
           
 
Method Summary
 void deploy(java.net.URL url)
          Hand the deployment unit to the appropriate sub deployer.
static MainDeployer getInstance()
          Singleton.
 boolean isDeployed(java.net.URL url)
          Ask all sub deployers, if they have deployed the specified unit.
 boolean isResponsibleFor(java.net.URL url)
          The main deployer should have sub deployers for all possible kinds of deployment units.
 java.util.List list()
          Return a List of all sub deployers.
 void registerDeployer(Deployer deployer)
          Register a new sub deployer.
 void undeploy(java.net.URL url)
          Ask the appropriate sub deployer to undeploy the unit.
 
Methods inherited from class org.smartcc.Deployer
getDocument, getDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainDeployer

public MainDeployer()
Method Detail

isResponsibleFor

public boolean isResponsibleFor(java.net.URL url)
The main deployer should have sub deployers for all possible kinds of deployment units.

Specified by:
isResponsibleFor in class Deployer

registerDeployer

public void registerDeployer(Deployer deployer)
Register a new sub deployer. Does nothing, if the specified deployer is already registered.


deploy

public void deploy(java.net.URL url)
            throws DeploymentException
Hand the deployment unit to the appropriate sub deployer.

Specified by:
deploy in class Deployer
DeploymentException

isDeployed

public boolean isDeployed(java.net.URL url)
                   throws DeploymentException
Ask all sub deployers, if they have deployed the specified unit.

Specified by:
isDeployed in class Deployer
DeploymentException

undeploy

public void undeploy(java.net.URL url)
              throws DeploymentException
Ask the appropriate sub deployer to undeploy the unit.

Specified by:
undeploy in class Deployer
DeploymentException

list

public java.util.List list()
Return a List of all sub deployers.


getInstance

public static MainDeployer getInstance()
Singleton.



Copyright © 2002 DC-TSS. All Rights Reserved.