org.apache.maven.model.inheritance
Class DefaultInheritanceAssembler

java.lang.Object
  extended by org.apache.maven.model.inheritance.DefaultInheritanceAssembler
All Implemented Interfaces:
InheritanceAssembler

@Component(role=InheritanceAssembler.class)
public class DefaultInheritanceAssembler
extends Object
implements InheritanceAssembler

Handles inheritance of model values.

Author:
Benjamin Bentmann

Constructor Summary
DefaultInheritanceAssembler()
           
 
Method Summary
 void assembleModelInheritance(Model child, Model parent, ModelBuildingRequest request, ModelProblemCollector problems)
          Merges values from the specified parent model into the given child model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultInheritanceAssembler

public DefaultInheritanceAssembler()
Method Detail

assembleModelInheritance

public void assembleModelInheritance(Model child,
                                     Model parent,
                                     ModelBuildingRequest request,
                                     ModelProblemCollector problems)
Description copied from interface: InheritanceAssembler
Merges 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:
assembleModelInheritance in interface InheritanceAssembler
Parameters:
child - The child model into which to merge the values inherited from the parent, must not be null.
parent - The (read-only) parent model from which to inherit the values, may be null.
request - The model building request that holds further settings, must not be null.
problems - The container used to collect problems that were encountered, must not be null.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.