Package org.springframework.batch.integration.launch

# Class JobLaunchingMessageHandler

java.lang.Object
org.springframework.batch.integration.launch.JobLaunchingMessageHandler

All Implemented Interfaces:
  `JobLaunchRequestHandler`

public class JobLaunchingMessageHandler extends Object implements JobLaunchRequestHandler
Message handler which uses strategies to convert a Message into a job and a set of job parameters

Author:
  Jonas Partner, Dave Syer, Gunnar Hillert

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JobLaunchingMessageHandler(JobLauncher jobLauncher)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `JobExecution`
  `launch(JobLaunchRequest request)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### JobLaunchingMessageHandler

    public JobLaunchingMessageHandler(JobLauncher jobLauncher)
    Parameters:
      `jobLauncher` - `JobLauncher` used to execute Spring Batch jobs

- ## Method Details

  - ### launch

    @ServiceActivator public JobExecution launch(JobLaunchRequest request) throws JobExecutionException
    Specified by:
      `launch` in interface `JobLaunchRequestHandler`
    Throws:
      `JobExecutionException`