org.springframework.batch.admin.integration
Class StringToJobLaunchRequestAdapter
java.lang.Object
org.springframework.batch.admin.integration.StringToJobLaunchRequestAdapter
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
@MessageEndpoint
public class StringToJobLaunchRequestAdapter
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean
Adapt a String to a JobLaunchRequest consisting of a reference to a
Job and some JobParameters. The input String is in the
format: jobname([(key=value(,key=value)*]), where
- jobname = the name of a
Job to launch
- key = the name of a
JobParameter
- value = the value of the parameter
Job parameter values are optional, and if provided are separated by commas
and enclosed in square brackets. If no parameters are provided the empty set
will be used.
- Author:
- Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringToJobLaunchRequestAdapter
public StringToJobLaunchRequestAdapter()
setJobLocator
public void setJobLocator(org.springframework.batch.core.configuration.JobLocator jobLocator)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
adapt
@ServiceActivator
public JobLaunchRequest adapt(java.lang.String request)
throws org.springframework.batch.core.launch.NoSuchJobException
- Throws:
org.springframework.batch.core.launch.NoSuchJobException
Copyright © 2011. All Rights Reserved.