Package org.apache.maven.model.profile
Class DefaultProfileInjector
java.lang.Object
org.apache.maven.model.profile.DefaultProfileInjector
- All Implemented Interfaces:
ProfileInjector
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultProfileInjector
extends Object
implements ProfileInjector
Deprecated.
Handles profile injection into the model.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Deprecated.ProfileModelMerger -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninjectProfile
(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Merges values from the specified profile into the given model.void
injectProfile
(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Merges values from the specified profile into the given model.injectProfiles
(Model model, List<Profile> profiles, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Merges values from the specified profile into the given model.
-
Constructor Details
-
DefaultProfileInjector
public DefaultProfileInjector()Deprecated.
-
-
Method Details
-
injectProfile
public void injectProfile(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.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 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
.
-
injectProfile
public Model injectProfile(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.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 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
.
-
injectProfiles
public Model injectProfiles(Model model, List<Profile> profiles, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.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
.
-
ModelBuilder
instead