Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$URL: $ $Id: 59674 2009-04-03 23:05:58Z $ 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 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. /
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);
      return ;
   public void setSchedulerManager(SchedulerManager schedulerManager) {
      this. = schedulerManager;
New to GrepCode? Check out our FAQ X