org.apache.maven.project.injection
Class DefaultProfileInjector
public
class
DefaultProfileInjector
extends 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.
public void inject(Profile profile, Model model)
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.