01: /*
02: * Copyright 2004-2005 OpenSymphony
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy
06: * of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: * Constructors.
43: *
44: *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45: */
46:
47: public NoOpJob() {
48: }
49:
50: /*
51: *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52: *
53: * Interface.
54: *
55: *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56: */
57:
58: /**
59: * <p>
60: * Do nothing.
61: * </p>
62: */
63: public void execute(JobExecutionContext context)
64: throws JobExecutionException {
65: }
66:
67: }
|