Annotation Interface ScheduledBusinessDay
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(ScheduledBusinessDayContainer.class)
public @interface ScheduledBusinessDay
Defines scheduled business day in annotated business calendar (see
BusinessCalendar
).
Multiple ScheduledBusinessDay
annotations may be placed on a single method. ScheduledBusinessDay
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 { @ScheduledBusinessDay(dayOfWeek = DayOfWeek.MONDAY, startTime = "08:00", endTime = "17:00") @ScheduledBusinessDay(dayOfWeek = DayOfWeek.WEDNESDAY, startTime = "09:00", endTime = "17:00") @ScheduledBusinessDay(dayOfWeek = DayOfWeek.FRIDAY, startTime = "10:00", endTime = "15:00") void scheduledBusinessDays(); }
- See Also:
-
Required Element Summary