The IBusinessDayConvention interface lets you find an open day close to a given day.
Depending on the convention, the provided day could be the closest day, the day before, or the day after. It has to return the provided day if it is open.
This interface only provides the LocalDate businessDay(LocalDate date, IBusinessDayCalendar calendar) method. It relies on
the provided business calendar to determine if a day is open or not.
The provided implementation of the common library is NextBusinessDayConvention, which finds the next open day.
The implementation of an IBusinessDayConvention should be retrieved from a bean / service implementing the IBusinessDayConventionFactory.
The factory requires the following:
A pivot
A database. This is optional, it could be null on a query cube.
Leaf levels, containing some business-specific data, such as the calendar to select.
The Atoti extensions that need the IBusinessDayConventionFactory should implement the IBusinessDayConventionAware so they will receive the factory at creation.