org.objectweb.easybeans.deployer.api
Interface EZBDeployer

All Known Implementing Classes:
AbsDeployer, AbsWebContainerDeployer, EasyBeansDeployer, JettyDeployer, JOnASDeployer, TomcatDeployer

public interface EZBDeployer

Interface allowing to deploy/undeploy the EZBDeployable objects.

Author:
Florent Benoit

Method Summary
 void deploy(EZBDeployable deployable)
          Deploy a deployable.
 void setEmbedded(EZBServer server)
          Receive Embedded instance for this deployer.
 void undeploy(EZBDeployable deployable)
          Undeploy the given deployable.
 

Method Detail

setEmbedded

void setEmbedded(EZBServer server)
Receive Embedded instance for this deployer.

Parameters:
server - the given instance of the embedded server.

deploy

void deploy(EZBDeployable deployable)
            throws EZBDeployerException
Deploy a deployable. It can be an EJB jar, EAR, WAR, etc.

Parameters:
deployable - a given deployable
Throws:
EZBDeployerException - if the deployment is not done.

undeploy

void undeploy(EZBDeployable deployable)
              throws EZBDeployerException
Undeploy the given deployable. It can be an EJB jar, EAR, WAR, etc.

Parameters:
deployable - a given deployable to undeploy
Throws:
EZBDeployerException - if the undeploy operation fails.