com.github.dynamicextensionsalfresco.jobs.ScheduledQuartzJob Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations Show documentation
Show all versions of annotations 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.jobs;
import java.lang.annotation.*;
/**
* Register any class implementing {@link org.quartz.Job} scheduled Quartz jobs.
*
* @author Laurent Van der Linden
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ScheduledQuartzJob {
/**
* A cron-like expression, extending the usual UN*X definition to include
* triggers on the second as well as minute, hour, day of month, month
* and day of week. e.g. "0 * * * * MON-FRI"
means once
* per minute on weekdays (at the top of the minute - the 0th second).
* @return an expression that can be parsed to a cron schedule
*/
String cron();
/**
* @return the unique name of the Quartz job shown in JMX/admin page
*/
String name();
/**
* @return the job group name, defaults to {@link org.quartz.Scheduler#DEFAULT_GROUP}
*/
String group() default org.quartz.Scheduler.DEFAULT_GROUP;
/**
* A key to a property from alfresco-global.properties specifying
* a cron-like expression, extending the usual UN*X definition to include
* triggers on the second as well as minute, hour, day of month, month
* and day of week. e.g. "0 * * * * MON-FRI"
means once
* per minute on weekdays (at the top of the minute - the 0th second).
* @return an expression that can be parsed to a cron schedule.
* When not provided / not resolved, fallback to default cron expression.
*/
String cronProp() default "";
/**
* If true the job will only run once in the Alfresco cluster by using the JobLockService
*
* @return
*/
boolean cluster() default false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy