org.apache.avalon.phoenix.interfaces
Interface Deployer

All Known Implementing Classes:
DefaultDeployer

public interface Deployer

A Deployer is responsible for taking a URL (ie a jar/war/ear) and deploying it to a particular "location". "location" means different things for different containers. For a servlet container it may mean the place to mount servlet (ie /myapp --> /myapp/Cocoon.xml is mapping cocoon servlet to /myapp context).

Author:
Peter Donald
See Also:
DeployerMBean

Field Summary
static String ROLE
           
 
Method Summary
 void deploy(String name, URL location)
          Deploy an installation.
 void undeploy(String name)
          undeploy a resource from a location.
 

Field Detail

ROLE

public static final String ROLE
Method Detail

deploy

public void deploy(String name,
                   URL location)
            throws DeploymentException
Deploy an installation.
Parameters:
name - the name of deployment
location - the installation to deploy
Throws:
DeploymentException - if an error occurs

undeploy

public void undeploy(String name)
              throws DeploymentException
undeploy a resource from a location.
Parameters:
name - the name of deployment
Throws:
DeploymentException - if an error occurs


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.