org.apache.servicemix.common
Interface Deployer

All Known Implementing Classes:
AbstractDeployer, AbstractWsdl1Deployer, AbstractXBeanDeployer, BaseXBeanDeployer

public interface Deployer

A deployer is responsible for handling one type of artifact deployment.

Since:
3.0
Version:
$Revision$
Author:
Guillaume Nodet

Method Summary
 boolean canDeploy(java.lang.String serviceUnitName, java.lang.String serviceUnitRootPath)
          Check if this deployer is able to handle a given artifact.
 ServiceUnit deploy(java.lang.String serviceUnitName, java.lang.String serviceUnitRootPath)
          Actually deploys the given service unit and build a ServiceUnit object that contains endpoints.
 void undeploy(ServiceUnit su)
          Undeploys the given service unit.
 

Method Detail

canDeploy

boolean canDeploy(java.lang.String serviceUnitName,
                  java.lang.String serviceUnitRootPath)
Check if this deployer is able to handle a given artifact.

Parameters:
serviceUnitName - the name of the service unit
serviceUnitRootPath - the path of the exploded service unit
Returns:
true if this deployer can handle the given artifact

deploy

ServiceUnit deploy(java.lang.String serviceUnitName,
                   java.lang.String serviceUnitRootPath)
                   throws javax.jbi.management.DeploymentException
Actually deploys the given service unit and build a ServiceUnit object that contains endpoints.

Parameters:
serviceUnitName - the name of the service unit
serviceUnitRootPath - the path of the exploded service unit
Returns:
a service unit containing endpoints
Throws:
javax.jbi.management.DeploymentException - if an error occurs

undeploy

void undeploy(ServiceUnit su)
              throws javax.jbi.management.DeploymentException
Undeploys the given service unit.

Parameters:
su - the service unit to undeploy
Throws:
javax.jbi.management.DeploymentException


Copyright © 2005-2012 FuseSource. All Rights Reserved.