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

com.github.dynamicextensionsalfresco.quartz.GenericQuartzJob.kt 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 org.quartz.Job
import org.quartz.JobExecutionContext
import org.quartz.JobExecutionException

/**
 * Quartz requires a Job class, not an instance, so we use this generic delegate.

 * @author Laurent Van der Linden
 */
public class GenericQuartzJob : Job {

    @Throws(JobExecutionException::class)
    override fun execute(jobExecutionContext: JobExecutionContext) {
        val lockedJob = jobExecutionContext.jobDetail.jobDataMap.get(BEAN_ID) as Job
        lockedJob.execute(jobExecutionContext)
    }

    companion object {
        public val BEAN_ID: String = "bean"
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy