Package org.apache.maven.model.profile
Interface ProfileInjector
- All Known Implementing Classes:
DefaultProfileInjector
public interface ProfileInjector
Handles profile injection into the model.
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.apache.maven.api.model.Model
injectProfile
(org.apache.maven.api.model.Model model, org.apache.maven.api.model.Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) Merges values from the specified profile into the given model.void
injectProfile
(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) Merges values from the specified profile into the given model.default org.apache.maven.api.model.Model
injectProfiles
(org.apache.maven.api.model.Model model, List<org.apache.maven.api.model.Profile> profiles, ModelBuildingRequest request, ModelProblemCollector problems) Merges values from the specified profile into the given model.
-
Method Details
-
injectProfile
void injectProfile(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) 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.- 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
.
-
injectProfile
default org.apache.maven.api.model.Model injectProfile(org.apache.maven.api.model.Model model, org.apache.maven.api.model.Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) 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.- 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
.
-
injectProfiles
default org.apache.maven.api.model.Model injectProfiles(org.apache.maven.api.model.Model model, List<org.apache.maven.api.model.Profile> profiles, ModelBuildingRequest request, ModelProblemCollector problems) 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.- 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
.
-