org.springframework.batch.admin.integration
Class FileToJobLaunchRequestAdapter

java.lang.Object
  extended by org.springframework.batch.admin.integration.FileToJobLaunchRequestAdapter
All Implemented Interfaces:
InitializingBean

@MessageEndpoint
public class FileToJobLaunchRequestAdapter
extends Object
implements InitializingBean

Adapt a File to a JobLaunchRequest with a job parameter input.file equal to the path of the file.

Author:
Dave Syer

Constructor Summary
FileToJobLaunchRequestAdapter()
           
 
Method Summary
 JobLaunchRequest adapt(File file)
           
 void afterPropertiesSet()
           
 void setJob(Job job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileToJobLaunchRequestAdapter

public FileToJobLaunchRequestAdapter()
Method Detail

setJob

public void setJob(Job job)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

adapt

@ServiceActivator
public JobLaunchRequest adapt(File file)
                       throws NoSuchJobException
Throws:
NoSuchJobException


Copyright © 2011. All Rights Reserved.