Annotation 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
    Modifier and Type
    Required Element
    Description
    DayOfWeek for which working schedule is configured.
    End time of business interval in format HH:MM, "18:00" e.g.
    Start time of business interval in format HH:MM, "09:00" e.g.
  • Element Details

    • dayOfWeek

      DayOfWeek dayOfWeek
      DayOfWeek for which working schedule is configured.
    • startTime

      String startTime
      Start time of business interval in format HH:MM, "09:00" e.g.
    • endTime

      String endTime
      End time of business interval in format HH:MM, "18:00" e.g.