- All Implemented Interfaces:
- ProfileInjector
public class DefaultProfileInjector
extends java.lang.Object
implements ProfileInjector
Inject profile data into a Model, using the profile as the dominant data source, and
persisting results of the injection in the Model.
This will look similar to the ModelUtils/DefaultModelInheritanceAssembler code, but
they are distinct. In model inheritance, the child provides data dominance AND persists
the results of the merge...sort of a 'merge-out' system.
In this system, the profile is dominant, but the model receives the merge result...sort
of a 'merge-in' system. The two pieces of code look like they could be combined with a
set of flags to determine which direction to merge 'to', but there are enough differences
in the code to justify the extra code involved with separating them, in order to simplify
the logic.