Changes to configuration APIs
This topic includes significant
additions and changes to Gosu APIs, specifically, changes to core APIs
in gw.*.
New method initializes reinsurance for policy term
Added a new PolicyPeriod.initializeReinsuranceForTerm
method which specifically initializes reinsurance for a policy period.
The new method consults the ReinsuranceConfigPlugin
in order to determine the correct value for the PolicyTerm.GenerateReinsurables
flag. You can call the initializeReinsuranceForTerm
method from Gosu code.
The new method is called
from PolicyPeriodPlugin
where appropriate, and also from two methods in PolicyImpl which create new periods:
createDraftPeriod and
createLegacyPeriod.
These code changes result
in ReinsuranceConfigPlugin#shouldGenerateReinsurables
being called later in the lifecycle of a policy period. This corrects
an issue where the method was being called so early that the plugin could
not do calculations based on things like the policy period start-of-term.
