com.github.dynamicextensionsalfresco.quartz.GenericQuartzJob Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations-runtime Show documentation
Show all versions of annotations-runtime Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.quartz;
import java.util.Map;
import org.quartz.Job;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
public final class GenericQuartzJob implements Job {
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
JobDetail jobDetail = jobExecutionContext.getJobDetail();
Map jobDataMap = jobDetail.getJobDataMap();
Object obj = jobDataMap.get(QuartzJobRegistrar.BEAN_ID);
Job lockedJob = (Job)obj;
lockedJob.execute(jobExecutionContext);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy