Reference date plugin
PolicyCenter calls the currently-registered
IReferenceDatePlugin reference
date plugin to evaluate the type of date to use to calculate reference
dates for different types of objects.
For the default behavior, refer to the built-in implementation of this in the class ReferenceDatePlugin.
Each of the plugin methods returns a Date object.
Coverage reference date
In the getCoverageReferenceDate method, calculate and return the reference date for a coverage. The method takes a coverage pattern and a coverable.
Exclusion reference date
In the getExclusionReferenceDate method, calculate and return the reference date for an exclusion The method takes a coverage pattern and a coverable. PolicyCenter uses this date for availability calculations.
Modifier reference date
In the getModifierReferenceDate method, calculate and return the reference date for a modifier. The method takes a modifier pattern and a modifiable object. PolicyCenter uses this date for availability calculations.
Period reference date
In the getPeriodReferenceDate method, calculate and return the reference date for a period. The method accepts the following arguments.
- A PolicyPeriod entity
- A reference date type, which is a
ReferenceDateTypetypecode such asEFFECTIVEDATE,RATINGPERIODDATE, orWRITTENDATE - A state of type
State
You must return the date to use as the reference date for effective dating.
