1 16 package org.apache.cocoon.components.cron; 17 18 import org.apache.avalon.framework.context.Context; 19 import org.apache.avalon.framework.logger.Logger; 20 import org.apache.avalon.framework.service.ServiceManager; 21 22 import org.quartz.impl.jdbcjobstore.JobStoreTX; 23 import org.quartz.impl.jdbcjobstore.DriverDelegate; 24 import org.quartz.impl.jdbcjobstore.NoSuchDelegateException; 25 26 32 public class QuartzJobStoreTX extends JobStoreTX { 33 34 private final Logger logger; 35 private final ServiceManager manager; 36 private final Context context; 37 private DriverDelegate delegate; 38 39 public QuartzJobStoreTX(Logger logger, ServiceManager manager, Context context) { 40 this.logger = logger; 41 this.manager = manager; 42 this.context = context; 43 } 44 45 protected DriverDelegate getDelegate() throws NoSuchDelegateException { 46 if (delegate == null) { 47 delegate = new QuartzDriverDelegate(this.logger, this.manager, this.context, super.getDelegate()); 48 } 49 50 return delegate; 51 } 52 } 53 | Popular Tags |