Annotation Interface CronHoliday
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(CronHolidayContainer.class)
public @interface CronHoliday
Defines cron-based holiday in annotated business calendar (see
BusinessCalendar
). Multiple CronHoliday
annotations may be placed on a single method. CronHoliday
annotation may be present on multiple methods of the same class,
annotated method can have any name and return value.
Example:
@BusinessCalendar(name = "calendarName", code = "uniqueCalendarCode") public interface AnnotatedBusinessCalendarExample { @CronHoliday(expression = "* * * 1-2 MAY ?") @CronHoliday(expression = "* * * ? * 6#3") void cronHolidays(); }
- See Also:
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionCron expression that describes given holiday. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionDescribes why given day is a holiday.