Class DefaultProfileInjector
java.lang.Object
org.apache.maven.internal.impl.model.DefaultProfileInjector
- All Implemented Interfaces:
ProfileInjector
Handles profile injection into the model.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
ProfileModelMerger -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninjectProfiles
(Model model, List<Profile> profiles, ModelBuilderRequest 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
Methods inherited from interface org.apache.maven.api.services.model.ProfileInjector
injectProfile
-
Constructor Details
-
DefaultProfileInjector
public DefaultProfileInjector()
-
-
Method Details
-
injectProfiles
public Model injectProfiles(Model model, List<Profile> profiles, ModelBuilderRequest 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:
injectProfiles
in interfaceProfileInjector
- Parameters:
model
- The model into which to merge the values defined by the profile, must not benull
.profiles
- The (read-only) list of profiles whose values should be injected, must not 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
.
-