org.apache.servicemix.common
Class AbstractDeployer

java.lang.Object
  extended by org.apache.servicemix.common.AbstractDeployer
All Implemented Interfaces:
Deployer
Direct Known Subclasses:
AbstractWsdl1Deployer, AbstractXBeanDeployer

public abstract class AbstractDeployer
extends java.lang.Object
implements Deployer

Base classes for custom artifacts deployers.

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

Field Summary
protected  ServiceMixComponent component
           
protected  org.slf4j.Logger logger
           
 
Constructor Summary
AbstractDeployer(ServiceMixComponent component)
           
 
Method Summary
protected  javax.jbi.management.DeploymentException failure(java.lang.String task, java.lang.String info, java.lang.Throwable e)
           
 void undeploy(ServiceUnit su)
          Undeploys the given service unit.
protected  void validate(Endpoint endpoint)
           
protected  void validate(ServiceUnit su)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.common.Deployer
canDeploy, deploy
 

Field Detail

logger

protected final transient org.slf4j.Logger logger

component

protected ServiceMixComponent component
Constructor Detail

AbstractDeployer

public AbstractDeployer(ServiceMixComponent component)
Method Detail

failure

protected javax.jbi.management.DeploymentException failure(java.lang.String task,
                                                           java.lang.String info,
                                                           java.lang.Throwable e)

undeploy

public void undeploy(ServiceUnit su)
              throws javax.jbi.management.DeploymentException
Description copied from interface: Deployer
Undeploys the given service unit.

Specified by:
undeploy in interface Deployer
Parameters:
su - the service unit to undeploy
Throws:
javax.jbi.management.DeploymentException

validate

protected void validate(Endpoint endpoint)
                 throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException

validate

protected void validate(ServiceUnit su)
                 throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException


Copyright © 2005-2012 FuseSource. All Rights Reserved.