
com.github.dynamicextensionsalfresco.jobs.ScheduledQuartzJob Maven / Gradle / Ivy
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 "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy