Class DefaultInheritanceAssembler
- java.lang.Object
-
- org.apache.maven.model.inheritance.DefaultInheritanceAssembler
-
- All Implemented Interfaces:
InheritanceAssembler
@Named @Singleton public class DefaultInheritanceAssembler extends java.lang.Object implements InheritanceAssembler
Handles inheritance of model values.- Author:
- Benjamin Bentmann
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultInheritanceAssembler.InheritanceModelMergerInheritanceModelMerger
-
Constructor Summary
Constructors Constructor Description DefaultInheritanceAssembler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassembleModelInheritance(org.apache.maven.model.Model child, org.apache.maven.model.Model parent, ModelBuildingRequest request, ModelProblemCollector problems)Merges values from the specified parent model into the given child model.
-
-
-
Method Detail
-
assembleModelInheritance
public void assembleModelInheritance(org.apache.maven.model.Model child, org.apache.maven.model.Model parent, ModelBuildingRequest request, ModelProblemCollector problems)Description copied from interface:InheritanceAssemblerMerges values from the specified parent model into the given child model. Implementations are expected to keep parent and child completely decoupled by injecting deep copies of objects into the child rather than the original objects from the parent.- Specified by:
assembleModelInheritancein interfaceInheritanceAssembler- Parameters:
child- The child model into which to merge the values inherited from the parent, must not benull.parent- The (read-only) parent model from which to inherit the values, may benull.request- The model building request that holds further settings, must not benull.problems- The container used to collect problems that were encountered, must not benull.
-
-