org.springframework.batch.integration.launch

## Class JobLaunchingMessageHandler

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

- All Implemented Interfaces:
    JobLaunchRequestHandler

      public class JobLaunchingMessageHandler
      extends java.lang.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 and Description
    `JobLaunchingMessageHandler(JobLauncher jobLauncher)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `JobExecution` | `launch(JobLaunchRequest request)`

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

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

- - ### Constructor Detail

    - #### JobLaunchingMessageHandler

          public JobLaunchingMessageHandler(JobLauncher jobLauncher)

      Parameters:
        `jobLauncher` - `JobLauncher` used to execute Spring Batch jobs

  - ### Method Detail

    - #### launch

          @ServiceActivator
          public JobExecution launch(JobLaunchRequest request)
                                                throws JobExecutionException

      Specified by:
        `launch` in interface `JobLaunchRequestHandler`
      Throws:
        `JobExecutionException`