All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dynamicextensionsalfresco.quartz.GenericQuartzJob Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 3.1.0
Show newest version
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