org.jboss.ejb.deployers
Class CreateDestinationDeployer

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer
          extended by org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer<org.jboss.metadata.ejb.jboss.JBossMetaData>
              extended by org.jboss.ejb.deployers.CreateDestinationDeployer
All Implemented Interfaces:
org.jboss.deployers.spi.deployer.Deployer, org.jboss.deployers.spi.Ordered

public class CreateDestinationDeployer
extends org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer<org.jboss.metadata.ejb.jboss.JBossMetaData>

CreateDestinationDeployer. FIXME This should be a component deployer but the ejb deployment is currently componentised

Version:
$Revision: 85945 $
Author:
Adrian Brock

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
org.jboss.deployers.spi.Ordered.OrderedComparator
 
Field Summary
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
CreateDestinationDeployer()
          Create a new CreateDestinationDeployer.
 
Method Summary
 void addCreateDestination(CreateDestination factory)
          Add a create destination
protected  void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit, org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
          Deploy a message driven bean
 void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit, org.jboss.metadata.ejb.jboss.JBossMetaData deployment)
           
protected  String getAttachmentName(org.jboss.deployers.structure.spi.DeploymentUnit unit, org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
          Get the attachment name
protected  boolean isCreateDestination(org.jboss.deployers.structure.spi.DeploymentUnit unit, org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
          Whether we should create a destination for this MDB
 void removeCreateDestination(CreateDestination factory)
          Remove a create destination
protected  void undeploy(org.jboss.deployers.structure.spi.DeploymentUnit unit, org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
          Undeploy a message driven bean
 void undeploy(org.jboss.deployers.structure.spi.DeploymentUnit unit, org.jboss.metadata.ejb.jboss.JBossMetaData deployment)
           
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer
getInput, internalDeploy, internalUndeploy
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer
addControllerContextName, deploy, isControllerContextNameCandidate, isUseUnitName, removeControllerContextName, setUseUnitName, undeploy
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
addInput, addInput, addOutput, addOutput, getInputs, getOutput, getOutputs, getRelativeOrder, getStage, isAllInputs, isComponentsOnly, isParentFirst, isTopLevelOnly, isWantComponents, setAllInputs, setComponentsOnly, setInput, setInputs, setInputs, setInputs, setOutput, setOutputs, setOutputs, setOutputs, setParentFirst, setRelativeOrder, setStage, setTopLevelOnly, setWantComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateDestinationDeployer

public CreateDestinationDeployer()
Create a new CreateDestinationDeployer.

Method Detail

addCreateDestination

public void addCreateDestination(CreateDestination factory)
Add a create destination

Parameters:
factory - the factory
Throws:
IllegalArgumentException - for a null factory

removeCreateDestination

public void removeCreateDestination(CreateDestination factory)
Remove a create destination

Parameters:
factory - the factory
Throws:
IllegalArgumentException - for a null factory

deploy

public void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                   org.jboss.metadata.ejb.jboss.JBossMetaData deployment)
            throws org.jboss.deployers.spi.DeploymentException
Specified by:
deploy in class org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer<org.jboss.metadata.ejb.jboss.JBossMetaData>
Throws:
org.jboss.deployers.spi.DeploymentException

undeploy

public void undeploy(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                     org.jboss.metadata.ejb.jboss.JBossMetaData deployment)
Overrides:
undeploy in class org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer<org.jboss.metadata.ejb.jboss.JBossMetaData>

deploy

protected void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                      org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
               throws org.jboss.deployers.spi.DeploymentException
Deploy a message driven bean

Parameters:
unit - the deployment unit
mdb - the mdb
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

undeploy

protected void undeploy(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                        org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
                 throws org.jboss.deployers.spi.DeploymentException
Undeploy a message driven bean

Parameters:
unit - the deployment unit
mdb - the mdb
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

isCreateDestination

protected boolean isCreateDestination(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                                      org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
                               throws org.jboss.deployers.spi.DeploymentException
Whether we should create a destination for this MDB

Parameters:
unit - the deployment unit
mdb - the message driven metadata
Returns:
true to create a destination
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

getAttachmentName

protected String getAttachmentName(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                                   org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
Get the attachment name

Parameters:
unit - the unit
mdb - the mdb
Returns:
the attachment name


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