org.springframework.batch.admin.integration
Class LastJobParametersJobLaunchRequestEnhancer

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

@MessageEndpoint
public class LastJobParametersJobLaunchRequestEnhancer
extends Object
implements InitializingBean

Adapt a JobLaunchRequest so that it picks up the job parameters from the last execution if possible.

Author:
Dave Syer

Constructor Summary
LastJobParametersJobLaunchRequestEnhancer()
           
 
Method Summary
 JobLaunchRequest adapt(JobLaunchRequest request)
           
 void afterPropertiesSet()
           
 void setJobService(JobService jobService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastJobParametersJobLaunchRequestEnhancer

public LastJobParametersJobLaunchRequestEnhancer()
Method Detail

setJobService

public void setJobService(JobService jobService)

afterPropertiesSet

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

adapt

@Transformer
public JobLaunchRequest adapt(JobLaunchRequest request)
                       throws NoSuchJobException
Throws:
NoSuchJobException


Copyright © 2011. All Rights Reserved.