Class ScriptMessageSourceSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
 
org.springframework.integration.dsl.MessageSourceSpec<ScriptMessageSourceSpec,MessageSource<?>>
 
org.springframework.integration.scripting.dsl.ScriptMessageSourceSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<MessageSource<?>>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
public class ScriptMessageSourceSpec
extends MessageSourceSpec<ScriptMessageSourceSpec,MessageSource<?>>
implements ComponentsRegistration 
The 
MessageSourceSpec for Dynamic Language Scripts.
 Delegates configuration options to the ScriptSpec.
 Produces MessageProcessorMessageSource.
 *- Since:
- 5.0
- Author:
- Artem Bilan
- See Also:
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsConstructorDescriptionScriptMessageSourceSpec(String scriptLocation) ScriptMessageSourceSpec(Resource scriptResource) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected MessageSource<?>doGet()The script lang (Groovy, ruby, python etc.).refreshCheckDelay(long refreshCheckDelay) The refreshCheckDelay in milliseconds for refreshable script resource.The script variable to use.variableGenerator(ScriptVariableGenerator variableGenerator) TheScriptVariableGeneratorto use.The script variables to use.variables(MapBuilder<?, String, Object> variables) The script variables to use.Methods inherited from class org.springframework.integration.dsl.MessageSourceSpecmessageHeadersMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
ScriptMessageSourceSpec
- 
ScriptMessageSourceSpec
 
- 
- 
Method Details- 
langThe script lang (Groovy, ruby, python etc.).- Parameters:
- lang- the script lang
- Returns:
- the current spec
- See Also:
 
- 
variableGeneratorTheScriptVariableGeneratorto use.- Parameters:
- variableGenerator- the- ScriptVariableGenerator
- Returns:
- the current spec
- See Also:
 
- 
variablesThe script variables to use.- Parameters:
- variables- the script variables
- Returns:
- the current spec
- See Also:
 
- 
variablesThe script variables to use.- Parameters:
- variables- the script variables
- Returns:
- the current spec
- See Also:
 
- 
variableThe script variable to use.- Parameters:
- name- the name of variable
- value- the value of variable
- Returns:
- the current spec
- See Also:
 
- 
refreshCheckDelayThe refreshCheckDelay in milliseconds for refreshable script resource.- Parameters:
- refreshCheckDelay- the refresh check delay milliseconds
- Returns:
- the current spec
- See Also:
 
- 
doGet- Overrides:
- doGetin class- IntegrationComponentSpec<ScriptMessageSourceSpec,- MessageSource<?>> 
 
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
 
 
-