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 java.lang.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 java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
adapt
@ServiceActivator
public JobLaunchRequest adapt(java.io.File file)
throws org.springframework.batch.core.launch.NoSuchJobException
- Throws:
org.springframework.batch.core.launch.NoSuchJobException
Copyright © 2011. All Rights Reserved.