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
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
dayOfWeek
DayOfWeek dayOfWeekDayOfWeekfor which working schedule is configured. -
startTime
String startTimeStart time of business interval in format HH:MM, "09:00" e.g. -
endTime
String endTimeEnd time of business interval in format HH:MM, "18:00" e.g. -
mark
String markReturns some optional mark that helps to categorize the day- Default:
""
-