org.jboss.varia.deployment
Interface BeanShellSubDeployerMBean
- All Superinterfaces:
- Service, ServiceMBean, SubDeployerExtMBean, SubDeployerMBean
- All Known Implementing Classes:
- BeanShellSubDeployer
public interface BeanShellSubDeployerMBean
- extends SubDeployerExtMBean
MBean interface.
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 |
OBJECT_NAME
static final ObjectName OBJECT_NAME
- The default ObjectName
createScriptDeployment
URL createScriptDeployment(String bshScript,
String scriptName)
throws DeploymentException
- 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.
- 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.