|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.figure8.join.services.scripting.ScriptLauncherAdapterSupport
org.figure8.join.services.scripting.ScriptLauncherJMSAdapter
public abstract class ScriptLauncherJMSAdapter
This is a base class for JMS consumers that wants to launch scripts
when a new message arrive. It acts as an adapter between the JMS world
and the ScriptLauncher facilities.
This class is a JMSConsumerBean that is Configurable : it defines
an optional parameter that should be a PropertiesExtractor impl.
This extractor help tha transition from a JMS view (that is object message
based) to a general script view (that is properties and arguments based).
Extensions of this class should specifiy which ScriptLauncher implementation
to use when running scripts.
Configurable,
JMSConsumerBean,
PropertiesExtractor| Field Summary | |
|---|---|
protected static ParameterDefinition |
extractionParam
ParameterDefinition representation of parameter denoting the propertiesExtractor to use. |
static java.lang.String |
EXTRACTOR_PARAM
Name of configurable parameter denoting the propertiesExtractor to use for getting props. |
protected static java.util.List |
parameters
List of ParameterDefinitions supported by this adapter |
| Fields inherited from class org.figure8.join.services.scripting.ScriptLauncherAdapterSupport |
|---|
name |
| Constructor Summary | |
|---|---|
ScriptLauncherJMSAdapter()
|
|
| Method Summary | |
|---|---|
java.util.List |
getParameterDefinitionsAsList()
Get this object parameters definitions as a list |
void |
onMessage(javax.jms.Message message)
This method is executed on message delivery. |
void |
setParameter(java.lang.String parameterName,
java.lang.String parameterValue)
Set the value of a parameter using its name |
void |
setPropertiesExtractorClass(java.lang.String extractorClass)
Specify the class of PropertiesExtractor implementation to use |
void |
stop()
Implement this method to stop current process and free resources. |
| Methods inherited from class org.figure8.join.services.scripting.ScriptLauncherAdapterSupport |
|---|
createNewLogFile, getName, getParameterDefinitions, getScriptLauncher, saveLogInfoIfAvailable, setName, setParameter, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.figure8.join.core.messaging.JMSConsumerBean |
|---|
getName, setName |
| Field Detail |
|---|
public static final java.lang.String EXTRACTOR_PARAM
protected static java.util.List parameters
ParameterDefinitions supported by this adapter
protected static final ParameterDefinition extractionParam
| Constructor Detail |
|---|
public ScriptLauncherJMSAdapter()
| Method Detail |
|---|
public void setPropertiesExtractorClass(java.lang.String extractorClass)
throws InvalidParameterException
extractorClass - The FQN of Java class representing PropertiesExtractor impl
InvalidParameterException - if extractorClass is not found or does
not implement the PropertiesExtractor interfacepublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenermessage - public void stop()
stop in interface JMSConsumerBeanpublic java.util.List getParameterDefinitionsAsList()
getParameterDefinitionsAsList in interface ConfigurablegetParameterDefinitionsAsList in class ScriptLauncherAdapterSupportParameterDefinition objects
public void setParameter(java.lang.String parameterName,
java.lang.String parameterValue)
throws InvalidParameterException
setParameter in interface ConfigurablesetParameter in class ScriptLauncherAdapterSupportparameterName - The name of parameter so set value forparameterValue - The value of the paramater
InvalidParameterException - if this parameter is not supported by this object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||