org.springframework.batch.admin.integration
Class StringToJobLaunchRequestAdapter
java.lang.Object
org.springframework.batch.admin.integration.StringToJobLaunchRequestAdapter
- All Implemented Interfaces:
- InitializingBean
@MessageEndpoint
public class StringToJobLaunchRequestAdapter
- extends Object
- implements 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(JobLocator jobLocator)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
adapt
@ServiceActivator
public JobLaunchRequest adapt(String request)
throws NoSuchJobException
- Throws:
NoSuchJobException
Copyright © 2011. All Rights Reserved.