Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CustomJobConfig |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: CustomJobConfig.java 11613 2008-04-20 20:30:10Z rossmason $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | package org.mule.transport.quartz.jobs; | |
11 | ||
12 | import org.mule.transport.quartz.config.AbstractJobConfig; | |
13 | ||
14 | import org.quartz.Job; | |
15 | ||
16 | /** | |
17 | * This configuration simply holds a reference to a user defined job to execute. | |
18 | */ | |
19 | 18 | public class CustomJobConfig extends AbstractJobConfig |
20 | { | |
21 | private Job job; | |
22 | ||
23 | public Job getJob() | |
24 | { | |
25 | 2 | return job; |
26 | } | |
27 | ||
28 | public void setJob(Job job) | |
29 | { | |
30 | 18 | this.job = job; |
31 | 18 | } |
32 | ||
33 | public Class getJobClass() | |
34 | { | |
35 | 0 | return CustomJob.class; |
36 | } | |
37 | ||
38 | } |