KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quartz > jobs > NoOpJob


1 /*
2  * Copyright 2004-2005 OpenSymphony
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy
6  * of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations
14  * under the License.
15  *
16  */

17
18 /*
19  * Previously Copyright (c) 2001-2004 James House
20  */

21 package org.quartz.jobs;
22
23 import org.quartz.Job;
24 import org.quartz.JobExecutionContext;
25 import org.quartz.JobExecutionException;
26
27 /**
28  * <p>
29  * An implementation of Job, that does absolutely nothing - useful for system
30  * which only wish to use <code>{@link org.quartz.TriggerListener}s</code>
31  * and <code>{@link org.quartz.JobListener}s</code>, rather than writing
32  * Jobs that perform work.
33  * </p>
34  *
35  * @author James House
36  */

37 public class NoOpJob implements Job {
38
39
40     /*
41      *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42      *
43      * Constructors.
44      *
45      *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46      */

47     
48     public NoOpJob() {
49     }
50
51     /*
52      *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
53      *
54      * Interface.
55      *
56      *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57      */

58
59     /**
60      * <p>
61      * Do nothing.
62      * </p>
63      */

64     public void execute(JobExecutionContext context)
65         throws JobExecutionException {
66     }
67     
68 }
Popular Tags