Package org.apache.maven.model.profile
Class DefaultProfileInjector
java.lang.Object
org.apache.maven.model.profile.DefaultProfileInjector
- All Implemented Interfaces:
- ProfileInjector
Handles profile injection into the model.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classProfileModelMerger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioninjectProfile(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) Merges values from the specified profile into the given model.voidinjectProfile(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems) Merges values from the specified profile into the given model.injectProfiles(Model model, List<Profile> profiles, ModelBuildingRequest request, ModelProblemCollector problems) Merges values from the specified profile into the given model.
- 
Constructor Details- 
DefaultProfileInjectorpublic DefaultProfileInjector()
 
- 
- 
Method Details- 
injectProfilepublic void injectProfile(Model 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 interface- ProfileInjector
- Parameters:
- 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.
 
- 
injectProfilepublic Model injectProfile(Model 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 interface- ProfileInjector
- Parameters:
- 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.
 
- 
injectProfilespublic Model injectProfiles(Model model, List<Profile> profiles, 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:
- injectProfilesin interface- ProfileInjector
- Parameters:
- model- The model into which to merge the values defined by the profile, must not be- null.
- profiles- The (read-only) list of profiles whose values should be injected, must not 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.
 
 
-