org.jboss.deployers.spi.deployer
Interface Deployers

All Known Implementing Classes:
DeployersImpl

public interface Deployers

Deployers.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Method Summary
 void change(DeploymentContext context, DeploymentStage stage)
          Change the state of a deployment
 void checkComplete(Collection<DeploymentContext> errors, Collection<Deployment> missingDeployer)
          Check all the deployments are complete
 void checkComplete(DeploymentContext... contexts)
          Check if deployments are complete
 void checkStructureComplete(DeploymentContext... contexts)
          Check if deployments are structurally complete
 DeploymentStage getDeploymentStage(DeploymentContext context)
          Get the deployment stage for a deployment
 Map<String,org.jboss.managed.api.ManagedObject> getManagedObjects(DeploymentContext context)
          Get the managed objects for a deployer
 void process(List<DeploymentContext> deploy, List<DeploymentContext> undeploy)
          Process deployment
 void shutdown()
          Shutdown.
 

Method Detail

getManagedObjects

Map<String,org.jboss.managed.api.ManagedObject> getManagedObjects(DeploymentContext context)
                                                                  throws DeploymentException
Get the managed objects for a deployer

Parameters:
context - the context
Returns:
the managed objects
Throws:
DeploymentException - for any error

process

void process(List<DeploymentContext> deploy,
             List<DeploymentContext> undeploy)
Process deployment

Parameters:
deploy - the deployments to deploy
undeploy - the deployments to remove

change

void change(DeploymentContext context,
            DeploymentStage stage)
            throws DeploymentException
Change the state of a deployment

Parameters:
context - the context
stage - the stage
Throws:
DeploymentException - for any error

getDeploymentStage

DeploymentStage getDeploymentStage(DeploymentContext context)
                                   throws DeploymentException
Get the deployment stage for a deployment

Parameters:
context - the context
Returns:
the stage or null if not deployed
Throws:
DeploymentException - for any error

checkComplete

void checkComplete(Collection<DeploymentContext> errors,
                   Collection<Deployment> missingDeployer)
                   throws DeploymentException
Check all the deployments are complete

Parameters:
errors - the contexts in error
missingDeployer - the deployments missing a deployer
Throws:
DeploymentException - when some deployment is not complete

checkComplete

void checkComplete(DeploymentContext... contexts)
                   throws DeploymentException
Check if deployments are complete

Parameters:
contexts - the deployments
Throws:
DeploymentException - when the deployment is not complete

checkStructureComplete

void checkStructureComplete(DeploymentContext... contexts)
                            throws DeploymentException
Check if deployments are structurally complete

Parameters:
contexts - the deployments
Throws:
DeploymentException - when the deployment is not complete

shutdown

void shutdown()
Shutdown. Stops any further deployment



Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.