Save This Page
Home » JBoss-5.1.0 » org.jboss.varia » deployment » [javadoc | source]
org.jboss.varia.deployment
public class: BeanShellSubDeployer [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.deployment.SubDeployerSupport
            org.jboss.varia.deployment.BeanShellSubDeployer

All Implemented Interfaces:
    BeanShellSubDeployerMBean, SubDeployerExtMBean, SubDeployerExt, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

A deployer that takes a bean shell script file and creates a JBoss MBean service wrapper for the script.
Field Summary
public static final  String BASE_SCRIPT_OBJECT_NAME     
protected  ServiceControllerMBean serviceController     
Fields inherited from org.jboss.deployment.SubDeployerSupport:
nativeSuffix,  nativePrefix,  mainDeployer,  tempDeployDir,  enhancedSuffixes,  suffixes,  relativeOrder,  CONFIGURATION
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public BeanShellSubDeployer() 
Method from org.jboss.varia.deployment.BeanShellSubDeployer Summary:
accepts,   create,   createScriptDeployment,   destroy,   init,   processNestedDeployments,   start,   startService,   stop
Methods from org.jboss.deployment.SubDeployerSupport:
accepts,   addDeployableFiles,   addDeployableJar,   create,   createService,   deployUrl,   destroy,   destroyService,   emitNotification,   getEnhancedSuffixes,   getRelativeOrder,   getSuffixes,   init,   isDeployable,   processNestedDeployments,   setEnhancedSuffixes,   setRelativeOrder,   setSuffixes,   start,   startService,   stop,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   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,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.varia.deployment.BeanShellSubDeployer Detail:
 public boolean accepts(DeploymentInfo sdi) 
    Returns true if this deployer can deploy the given DeploymentInfo.
 public  void create(DeploymentInfo di) throws DeploymentException 
    Describe create method here.
 public 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.
 public  void destroy(DeploymentInfo di) throws DeploymentException 
 public  void init(DeploymentInfo di) throws DeploymentException 
    Describe init method here.
 protected  void processNestedDeployments(DeploymentInfo di) throws DeploymentException 
 public synchronized  void start(DeploymentInfo di) throws DeploymentException 
 protected  void startService() throws Exception 
    Get a reference to the ServiceController
 public  void stop(DeploymentInfo di) throws DeploymentException