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

All Implemented Interfaces:
    DynamicMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

A wrapper service that exposes a BeanShell script as a JBoss service MBean.
Nested Class Summary:
public class  BeanShellScript.InvocationCouple   
Field Summary
protected  DeploymentInfo deploymentInfo     
protected  String name     
protected  ScriptService scriptService     
protected  ObjectName preferedObjectName     
protected  ObjectName[] dependsServices     
protected  HashMap supportedInterfaces     
protected  MBeanInfo mbeanInfo     
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public BeanShellScript(DeploymentInfo di) throws DeploymentException 
 public BeanShellScript(URL url) throws DeploymentException 
 BeanShellScript(String name,
    InputStream stream) throws DeploymentException 
Method from org.jboss.varia.deployment.BeanShellScript Summary:
createService,   destroyService,   generateMBeanInfo,   getDependsServices,   getInternalAttribute,   getMBeanInfo,   getPreferedObjectName,   init,   internalInvoke,   loadScript,   loadScript,   retrieveCompatibleInvocation,   retrieveCompatibleInvocation,   setInternalAttribute,   startService,   stopService
Methods from org.jboss.system.ServiceDynamicMBeanSupport:
getAttribute,   getAttributes,   getInternalAttribute,   getInternalAttributeInfo,   getInternalConstructorInfo,   getInternalDescription,   getInternalNotificationInfo,   getInternalOperationInfo,   getMBeanInfo,   internalInvoke,   invoke,   setAttribute,   setAttributes,   setInternalAttribute
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.BeanShellScript Detail:
 protected  void createService() throws Exception 
 protected  void destroyService() throws Exception 
 protected MBeanInfo generateMBeanInfo(Class[] intfs) throws IntrospectionException 
 public ObjectName[] getDependsServices() 
 protected Object getInternalAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException 
 public MBeanInfo getMBeanInfo() 
 public ObjectName getPreferedObjectName() 
 protected  void init(URL url) throws DeploymentException 
 protected Object internalInvoke(String actionName,
    Object[] params,
    String[] signature) throws MBeanException, ReflectionException 
 protected  void loadScript(URL url) throws Exception 
 protected  void loadScript(InputStream stream) throws Exception 
    Load script. Stream should/must be closed/handled by the client invoking this method.
 protected InvocationCouple retrieveCompatibleInvocation(String name,
    String[] signature) throws ClassNotFoundException 
 protected InvocationCouple retrieveCompatibleInvocation(String name,
    Class[] signature) throws ClassNotFoundException 
 protected  void setInternalAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException 
 protected  void startService() throws Exception 
 protected  void stopService() throws Exception