Package org.apache.maven.model.profile
Class DefaultProfileInjector
- java.lang.Object
-
- org.apache.maven.model.profile.DefaultProfileInjector
-
- All Implemented Interfaces:
ProfileInjector
@Named @Singleton public class DefaultProfileInjector extends java.lang.Object implements ProfileInjector
Handles profile injection into the model.- Author:
- Benjamin Bentmann
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultProfileInjector.ProfileModelMergerProfileModelMerger
-
Constructor Summary
Constructors Constructor Description DefaultProfileInjector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinjectProfile(org.apache.maven.model.Model model, org.apache.maven.model.Profile profile, ModelBuildingRequest request, ModelProblemCollector problems)Merges values from the specified profile into the given model.
-
-
-
Method Detail
-
injectProfile
public void injectProfile(org.apache.maven.model.Model model, org.apache.maven.model.Profile profile, ModelBuildingRequest request, ModelProblemCollector problems)Description copied from interface:ProfileInjectorMerges 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:
injectProfilein interfaceProfileInjector- Parameters:
model- The model into which to merge the values defined by the profile, must not benull.profile- The (read-only) profile whose values should be injected, 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.
-
-