Class DefaultProfileInjector

  extended by org.apache.maven.model.profile.DefaultProfileInjector
All Implemented Interfaces:

public class DefaultProfileInjector
extends Object
implements ProfileInjector

Handles profile injection into the model.

Benjamin Bentmann

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

Constructor Detail


public DefaultProfileInjector()
Method Detail


public void injectProfile(Model model,
                          Profile profile,
                          ModelBuildingRequest request,
                          ModelProblemCollector problems)
Description copied from interface: ProfileInjector
Merges values from the specified profile into the given model. Implementations are expected to keep the profile and model completely decoupled by injecting deep copies rather than the original objects from the profile.

Specified by:
injectProfile in interface ProfileInjector
model - The model into which to merge the values defined by the profile, must not be null.
profile - The (read-only) profile whose values should be injected, 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.