javax.batch.api.listener

## Interface JobListener

- All Known Implementing Classes:
    AbstractJobListener

      public interface JobListener

  JobListener intercepts job execution.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `afterJob()` The afterJob method receives control after the job execution ends.
    `void` | `beforeJob()` The beforeJob method receives control before the job execution begins.

- - ### Method Detail

    - #### beforeJob

          void beforeJob()
                         throws Exception

      The beforeJob method receives control before the job execution begins.
      Throws:
        `Exception` - throw if an error occurs.

    - #### afterJob

          void afterJob()
                        throws Exception

      The afterJob method receives control after the job execution ends.
      Throws:
        `Exception` - throw if an error occurs.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.