org.jboss.varia.deployment
Class LegacyBeanShellScriptDeployer

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<BeanShellScript>
              extended by org.jboss.varia.deployment.LegacyBeanShellScriptDeployer
All Implemented Interfaces:
org.jboss.deployers.spi.deployer.Deployer, org.jboss.deployers.spi.Ordered

public class LegacyBeanShellScriptDeployer
extends org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer<BeanShellScript>

Old mbean style bean shell script deployer.

Author:
Ales Justin

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
org.jboss.deployers.spi.Ordered.OrderedComparator
 
Field Summary
static String BASE_SCRIPT_OBJECT_NAME
           
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
LegacyBeanShellScriptDeployer(ServiceController serviceController)
           
 
Method Summary
 void deploy(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit, BeanShellScript script)
           
protected  ObjectName getBshScriptName(BeanShellScript script, org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit)
          Get the bean shell script name.
 void setMode(String mode)
          Set the mode.
 void undeploy(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit, BeanShellScript script)
           
 
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
 

Field Detail

BASE_SCRIPT_OBJECT_NAME

public static final String BASE_SCRIPT_OBJECT_NAME
See Also:
Constant Field Values
Constructor Detail

LegacyBeanShellScriptDeployer

public LegacyBeanShellScriptDeployer(ServiceController serviceController)
Method Detail

getBshScriptName

protected ObjectName getBshScriptName(BeanShellScript script,
                                      org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit)
                               throws MalformedObjectNameException
Get the bean shell script name.

Parameters:
script - the script
deploymentUnit - the deployment unit
Returns:
get script's object name
Throws:
MalformedObjectNameException - for any error

deploy

public void deploy(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit,
                   BeanShellScript script)
            throws org.jboss.deployers.spi.DeploymentException
Specified by:
deploy in class org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer<BeanShellScript>
Throws:
org.jboss.deployers.spi.DeploymentException

undeploy

public void undeploy(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit,
                     BeanShellScript script)
Overrides:
undeploy in class org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer<BeanShellScript>

setMode

public void setMode(String mode)
Set the mode.

Parameters:
mode - the controller mode


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