Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$URL: https://source.sakaiproject.org/svn/jobscheduler/tags/scheduler-2.9.1/scheduler-component-shared/src/java/org/sakaiproject/component/app/scheduler/jobs/SpringJobBeanWrapper.java $ $Id: SpringJobBeanWrapper.java 59674 2009-04-03 23:05:58Z arwhyte@umich.edu $ Copyright (c) 2003, 2004, 2005, 2006, 2008 The Sakai Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /
package org.sakaiproject.component.app.scheduler.jobs;
import  org.quartz.Job;
import  org.quartz.JobExecutionContext;
import  org.quartz.JobExecutionException;

This class is final to ensure that it will be constructable by the scheduler infrastructure
public class SpringJobBeanWrapper implements JobBeanWrapper, Job {
   private String beanId;
   private String jobName;
   public SpringJobBeanWrapper() {
   }
   public Class getJobClass() {
      return this.getClass();
   }
   public String getBeanId() {
      return ;
   }
   public void setBeanId(String beanId) {
      this. = beanId;
   }
   public String getJobType() {
      return ;
   }
   public void setJobName(String jobName) {
      this. = jobName;
   }
   public void init() {
   }
   public void execute(JobExecutionContext jobExecutionContextthrows JobExecutionException {
      String beanId = jobExecutionContext.getJobDetail().getJobDataMap().getString();
      Job job = (Job) ComponentManager.get(beanId);
      job.execute(jobExecutionContext);
   }
      return ;
   }
   public void setSchedulerManager(SchedulerManager schedulerManager) {
      this. = schedulerManager;
   }
New to GrepCode? Check out our FAQ X