Annotation Interface FixedDayHoliday
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(FixedDayHolidayContainer.class)
public @interface FixedDayHoliday
Defines holiday for specific date in annotated business calendar (see
BusinessCalendar). Multiple FixedDayHoliday
annotations may be placed on a single method. FixedDayHoliday 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 {
@FixedDayHoliday(fixedDate = "2021-05-08")
@FixedDayHoliday(fixedDate = "2021-12-30")
void fixedHolidays();
}
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDescribes why given day is a holiday.