Annotation 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

    Required Elements
    Modifier and Type
    Required Element
    Description
    Cron expression that describes given holiday.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Describes why given day is a holiday.
  • Element Details

    • expression

      String expression
      Cron expression that describes given holiday.
    • description

      String description
      Describes why given day is a holiday.
      Default:
      ""