org.springframework.batch.admin.integration
Class LastJobParametersJobLaunchRequestEnhancer

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

@MessageEndpoint
public class LastJobParametersJobLaunchRequestEnhancer
extends java.lang.Object
implements org.springframework.beans.factory.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 java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

adapt

@Transformer
public JobLaunchRequest adapt(JobLaunchRequest request)
                       throws org.springframework.batch.core.launch.NoSuchJobException
Throws:
org.springframework.batch.core.launch.NoSuchJobException


Copyright © 2011. All Rights Reserved.