01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/jobscheduler/tags/sakai_2-4-1/scheduler-component-shared/src/java/org/sakaiproject/component/app/scheduler/jobs/TestBeanJob.java $
03: * $Id: TestBeanJob.java 4396 2005-12-02 00:58:02Z john.ellis@rsmart.com $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004 The Regents of the University of Michigan, Trustees of Indiana University,
07: * Board of Trustees of the Leland Stanford, Jr., University, and The MIT Corporation
08: *
09: * Licensed under the Educational Community License Version 1.0 (the "License");
10: * By obtaining, using and/or copying this Original Work, you agree that you have read,
11: * understand, and will comply with the terms and conditions of the Educational Community License.
12: * You may obtain a copy of the License at:
13: *
14: * http://cvs.sakaiproject.org/licenses/license_1_0.html
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
18: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
19: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21: *
22: **********************************************************************************/package org.sakaiproject.component.app.scheduler.jobs;
23:
24: import org.quartz.Job;
25: import org.quartz.JobExecutionContext;
26: import org.quartz.JobExecutionException;
27:
28: /**
29: * Created by IntelliJ IDEA.
30: * User: John Ellis
31: * Date: Dec 1, 2005
32: * Time: 5:16:00 PM
33: * To change this template use File | Settings | File Templates.
34: */
35: public class TestBeanJob implements Job {
36:
37: private String configMessage;
38:
39: public void execute(JobExecutionContext jobExecutionContext)
40: throws JobExecutionException {
41: System.out.println("Test bean job trigger with message: "
42: + getConfigMessage());
43: }
44:
45: public String getConfigMessage() {
46: return configMessage;
47: }
48:
49: public void setConfigMessage(String configMessage) {
50: this.configMessage = configMessage;
51: }
52: }
|