org.jboss.varia.deployment
Class BeanShellSubDeployer
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
org.jboss.varia.deployment.BeanShellSubDeployer
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, SubDeployer, SubDeployerExt, SubDeployerExtMBean, SubDeployerMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean, BeanShellSubDeployerMBean
Deprecated.
@Deprecated
public class BeanShellSubDeployer
- extends SubDeployerSupport
- implements BeanShellSubDeployerMBean
A deployer that takes a bean shell script file and creates a JBoss
MBean service wrapper for the script.
- Version:
- $Revision: 81038 $
- Author:
- Sacha Labourey., Scott Stark, Dimitris Andreadis.
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary |
BeanShellSubDeployer()
Deprecated. Default contructor used to set default values to the Suffixes and RelativeOrder
attributes. |
Methods inherited from class org.jboss.deployment.SubDeployerSupport |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, isDeployable, setEnhancedSuffixes, setRelativeOrder, setSuffixes, stopService |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_SCRIPT_OBJECT_NAME
public static final String BASE_SCRIPT_OBJECT_NAME
- Deprecated.
- See Also:
- Constant Field Values
serviceController
protected ServiceControllerMBean serviceController
- Deprecated.
BeanShellSubDeployer
public BeanShellSubDeployer()
- Deprecated.
- Default contructor used to set default values to the Suffixes and RelativeOrder
attributes. Those are read at subdeployer registration time by the MainDeployer
to alter its SuffixOrder.
startService
protected void startService()
throws Exception
- Deprecated.
- Get a reference to the ServiceController
- Overrides:
startService
in class SubDeployerSupport
- Throws:
Exception
processNestedDeployments
protected void processNestedDeployments(DeploymentInfo di)
throws DeploymentException
- Deprecated.
- Overrides:
processNestedDeployments
in class SubDeployerSupport
- Throws:
DeploymentException
accepts
public boolean accepts(DeploymentInfo sdi)
- Deprecated.
- Returns true if this deployer can deploy the given DeploymentInfo.
- Specified by:
accepts
in interface SubDeployer
- Specified by:
accepts
in interface SubDeployerMBean
- Overrides:
accepts
in class SubDeployerSupport
- Returns:
- True if this deployer can deploy the given DeploymentInfo.
init
public void init(DeploymentInfo di)
throws DeploymentException
- Deprecated.
- Describe
init
method here.
- Specified by:
init
in interface SubDeployer
- Specified by:
init
in interface SubDeployerMBean
- Overrides:
init
in class SubDeployerSupport
- Parameters:
di
- a DeploymentInfo
value
- Throws:
DeploymentException
- if an error occurs
create
public void create(DeploymentInfo di)
throws DeploymentException
- Deprecated.
- Describe
create
method here.
- Specified by:
create
in interface SubDeployer
- Specified by:
create
in interface SubDeployerMBean
- Overrides:
create
in class SubDeployerSupport
- Parameters:
di
- a DeploymentInfo
value
- Throws:
DeploymentException
- if an error occurs
start
public void start(DeploymentInfo di)
throws DeploymentException
- Deprecated.
- Specified by:
start
in interface SubDeployer
- Specified by:
start
in interface SubDeployerMBean
- Overrides:
start
in class SubDeployerSupport
- Throws:
DeploymentException
stop
public void stop(DeploymentInfo di)
throws DeploymentException
- Deprecated.
- Specified by:
stop
in interface SubDeployer
- Specified by:
stop
in interface SubDeployerMBean
- Overrides:
stop
in class SubDeployerSupport
- Throws:
DeploymentException
destroy
public void destroy(DeploymentInfo di)
throws DeploymentException
- Deprecated.
- Specified by:
destroy
in interface SubDeployer
- Specified by:
destroy
in interface SubDeployerMBean
- Overrides:
destroy
in class SubDeployerSupport
- Throws:
DeploymentException
createScriptDeployment
public URL createScriptDeployment(String bshScript,
String scriptName)
throws DeploymentException
- Deprecated.
- Create a bsh deployment given the script content and name. This creates
a temp file using File.createTempFile(scriptName, ".bsh") and then
deploys this script via the main deployer.
- Specified by:
createScriptDeployment
in interface BeanShellSubDeployerMBean
- Parameters:
bshScript
- the bsh script contentscriptName
- the bsh script name to use
- Returns:
- the URL of the temporary file used as the deployment script
- Throws:
DeploymentException
- thrown on failure to create the bsh
script or deploy it.
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.