|
||||||||||
PREV CLASS 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.system.ServiceDynamicMBeanSupport (src)
org.jboss.varia.deployment.BeanShellScript
A wrapper service that exposes a BeanShell script as a JBoss service mbean.
BeanShellSubDeployer
(src) Nested Class Summary | |
class |
BeanShellScript.InvocationCouple (src)
|
Field Summary | |
protected static java.util.HashMap |
basicTypes
|
protected ObjectName (src) [] |
dependsServices
|
protected DeploymentInfo (src) |
deploymentInfo
|
protected Interpreter |
interpreter
|
protected MBeanInfo (src) |
mbeanInfo
|
protected java.lang.String |
name
|
protected ObjectName (src) |
preferedObjectName
|
protected ScriptService (src) |
scriptService
|
protected java.util.HashMap |
supportedInterfaces
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
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 | |
BeanShellScript(DeploymentInfo (src) di)
|
Method Summary | |
protected void |
createService()
Sub-classes should override this method to provide custum 'create' logic. |
protected void |
destroyService()
Sub-classes should override this method to provide custum 'destroy' logic. |
protected MBeanInfo (src) |
generateMBeanInfo(java.lang.Class[] intfs)
|
ObjectName (src) [] |
getDependsServices()
|
protected java.lang.Object |
getInternalAttribute(java.lang.String attribute)
|
MBeanInfo (src) |
getMBeanInfo()
Returns the management interface that describes this dynamic resource. |
ObjectName (src) |
getPreferedObjectName()
|
protected java.lang.Object |
internalInvoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
|
protected void |
loadScript(java.net.URL url)
|
protected BeanShellScript.InvocationCouple (src) |
retrieveCompatibleInvocation(java.lang.String name,
java.lang.Class[] signature)
|
protected BeanShellScript.InvocationCouple (src) |
retrieveCompatibleInvocation(java.lang.String name,
java.lang.String[] signature)
|
protected void |
setInternalAttribute(Attribute (src) attribute)
|
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceDynamicMBeanSupport (src) |
getAttribute, getAttributes, getInternalAttributeInfo, getInternalConstructorInfo, getInternalDescription, getInternalNotificationInfo, getInternalOperationInfo, invoke, setAttribute, setAttributes |
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 |
Field Detail |
protected DeploymentInfo (src) deploymentInfo
protected java.lang.String name
protected Interpreter interpreter
protected ScriptService (src) scriptService
protected ObjectName (src) preferedObjectName
protected ObjectName (src) [] dependsServices
protected java.util.HashMap supportedInterfaces
protected MBeanInfo (src) mbeanInfo
protected static java.util.HashMap basicTypes
Constructor Detail |
public BeanShellScript(DeploymentInfo (src) di) throws DeploymentException (src)
Method Detail |
protected java.lang.Object getInternalAttribute(java.lang.String attribute) throws AttributeNotFoundException (src) , MBeanException (src) , ReflectionException (src)
getInternalAttribute
in class ServiceDynamicMBeanSupport (src)
AttributeNotFoundException (src)
MBeanException (src)
ReflectionException (src)
protected void setInternalAttribute(Attribute (src) attribute) throws AttributeNotFoundException (src) , InvalidAttributeValueException (src) , MBeanException (src) , ReflectionException (src)
setInternalAttribute
in class ServiceDynamicMBeanSupport (src)
AttributeNotFoundException (src)
InvalidAttributeValueException (src)
MBeanException (src)
ReflectionException (src)
protected java.lang.Object internalInvoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature) throws MBeanException (src) , ReflectionException (src)
internalInvoke
in class ServiceDynamicMBeanSupport (src)
MBeanException (src)
ReflectionException (src)
public MBeanInfo (src) getMBeanInfo()
DynamicMBean (src)
getMBeanInfo
in interface DynamicMBean (src)
getMBeanInfo
in class ServiceDynamicMBeanSupport (src)
protected void createService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
createService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void destroyService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
destroyService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected BeanShellScript.InvocationCouple (src) retrieveCompatibleInvocation(java.lang.String name, java.lang.String[] signature) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
protected BeanShellScript.InvocationCouple (src) retrieveCompatibleInvocation(java.lang.String name, java.lang.Class[] signature) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
protected void loadScript(java.net.URL url) throws java.lang.Exception
java.lang.Exception
protected MBeanInfo (src) generateMBeanInfo(java.lang.Class[] intfs) throws IntrospectionException (src)
IntrospectionException (src)
public ObjectName (src) getPreferedObjectName()
public ObjectName (src) [] getDependsServices()
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |