|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.SubDeployerSupport (src)
org.jboss.varia.deployment.BeanShellSubDeployer
A deployer that takes a bean shell script file and creates a JBoss mbean service wrapper for the script.
| Nested Class Summary |
| Nested classes inherited from class org.jboss.deployment.SubDeployerSupport (src) |
SubDeployerSupport.ClassConfiguration (src) |
| Field Summary | |
static java.lang.String |
BASE_SCRIPT_OBJECT_NAME
|
static java.lang.String |
BEANSHELL_EXTENSION
|
protected ServiceControllerMBean |
serviceController
|
| Fields inherited from class org.jboss.deployment.SubDeployerSupport (src) |
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.deployment.SubDeployer (src) |
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION |
| Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
BeanShellSubDeployer()
Default CTOR used to set default values to the Suffixes and RelativeOrder attributes. |
|
| Method Summary | |
boolean |
accepts(DeploymentInfo (src) sdi)
Returns true if this deployer can deploy the given DeploymentInfo. |
void |
create(DeploymentInfo (src) di)
Describe create method here. |
java.net.URL |
createScriptDeployment(java.lang.String bshScript,
java.lang.String scriptName)
Create a bsh deployment given the script content and name. |
void |
destroy(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'destroy' logic. |
void |
init(DeploymentInfo (src) di)
Describe init method here. |
protected void |
processNestedDeployments(DeploymentInfo (src) di)
The processNestedDeployments method searches for any nested and
deployable elements. |
void |
start(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'start' logic. |
protected void |
startService()
Get a reference to the ServiceController |
void |
stop(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'stop' logic. |
| Methods inherited from class org.jboss.deployment.SubDeployerSupport (src) |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getRelativeOrder, getSuffixes, isDeployable, setRelativeOrder, setSuffixes, stopService |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.deployment.SubDeployer (src) |
getServiceName |
| Field Detail |
public static final java.lang.String BEANSHELL_EXTENSION
public static final java.lang.String BASE_SCRIPT_OBJECT_NAME
protected ServiceControllerMBean serviceController
| Constructor Detail |
public BeanShellSubDeployer()
| Method Detail |
protected void startService()
throws java.lang.Exception
startService in class SubDeployerSupport (src) java.lang.Exception
protected void processNestedDeployments(DeploymentInfo (src) di)
throws DeploymentException (src)
SubDeployerSupport (src) processNestedDeployments method searches for any nested and
deployable elements. Only Directories and Zipped archives are processed,
and those are delegated to the addDeployableFiles and addDeployableJar
methods respectively. This method can be overridden for alternate
behaviour.
processNestedDeployments in class SubDeployerSupport (src) DeploymentException (src) public boolean accepts(DeploymentInfo (src) sdi)
sdi - a DeploymentInfo value
public void init(DeploymentInfo (src) di)
throws DeploymentException (src)
init method here.
init in interface SubDeployer (src) init in class SubDeployerSupport (src) di - a DeploymentInfo value
DeploymentException (src) - if an error occurs
public void create(DeploymentInfo (src) di)
throws DeploymentException (src)
create method here.
create in interface SubDeployer (src) create in class SubDeployerSupport (src) di - a DeploymentInfo value
DeploymentException (src) - if an error occurs
public void start(DeploymentInfo (src) di)
throws DeploymentException (src)
SubDeployerSupport (src)
start in interface SubDeployer (src) start in class SubDeployerSupport (src) DeploymentException (src)
public void stop(DeploymentInfo (src) di)
throws DeploymentException (src)
SubDeployerSupport (src)
stop in interface SubDeployer (src) stop in class SubDeployerSupport (src) DeploymentException (src)
public void destroy(DeploymentInfo (src) di)
throws DeploymentException (src)
SubDeployerSupport (src)
destroy in interface SubDeployer (src) destroy in class SubDeployerSupport (src) DeploymentException (src)
public java.net.URL createScriptDeployment(java.lang.String bshScript,
java.lang.String scriptName)
throws DeploymentException (src)
bshScript - the bsh script contentscriptName - the bsh script name to use
DeploymentException (src) - thrown on failure to create the bsh
script or deploy it.
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||