Annotation Interface WeeklyHoliday
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(WeeklyHolidayContainer.class)
public @interface WeeklyHoliday
Defines weekly holiday in annotated business calendar (see
BusinessCalendar
). Multiple WeeklyHoliday
annotations may be placed on a single method. WeeklyHoliday
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 { @WeeklyHoliday(DayOfWeek.SATURDAY) @WeeklyHoliday(value = DayOfWeek.SUNDAY, description = "Sunday is always a day for family") void weeklyHolidays(); }
- See Also:
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionDescribes why given day is a holiday.