org.springframework.batch.admin.integration
Class FileToJobLaunchRequestAdapter
java.lang.Object
org.springframework.batch.admin.integration.FileToJobLaunchRequestAdapter
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
@MessageEndpoint
public class FileToJobLaunchRequestAdapter
- extends Object
- implements org.springframework.beans.factory.InitializingBean
Adapt a File to a JobLaunchRequest with a job parameter
input.file equal to the path of the file.
- Author:
- Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileToJobLaunchRequestAdapter
public FileToJobLaunchRequestAdapter()
setJob
public void setJob(org.springframework.batch.core.Job job)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
adapt
@ServiceActivator
public JobLaunchRequest adapt(File file)
throws org.springframework.batch.core.launch.NoSuchJobException
- Throws:
org.springframework.batch.core.launch.NoSuchJobException
Copyright © 2013. All Rights Reserved.