Package org.apache.maven.model.profile
Class DefaultProfileSelector
java.lang.Object
org.apache.maven.model.profile.DefaultProfileSelector
- All Implemented Interfaces:
ProfileSelector
Calculates the active profiles among a given collection of profiles.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddProfileActivator
(ProfileActivator profileActivator) getActiveProfiles
(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Determines the profiles which are active in the specified activation context.List<org.apache.maven.api.model.Profile>
getActiveProfilesV4
(Collection<org.apache.maven.api.model.Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Determines the profiles which are active in the specified activation context.
-
Constructor Details
-
DefaultProfileSelector
public DefaultProfileSelector() -
DefaultProfileSelector
-
-
Method Details
-
addProfileActivator
-
getActiveProfilesV4
public List<org.apache.maven.api.model.Profile> getActiveProfilesV4(Collection<org.apache.maven.api.model.Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Description copied from interface:ProfileSelector
Determines the profiles which are active in the specified activation context. Active profiles will eventually be injected into the model.- Specified by:
getActiveProfilesV4
in interfaceProfileSelector
- Parameters:
profiles
- The profiles whose activation status should be determined, must not benull
.context
- The environmental context used to determine the activation status of a profile, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Returns:
- The profiles that have been activated, never
null
.
-
getActiveProfiles
public List<Profile> getActiveProfiles(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Description copied from interface:ProfileSelector
Determines the profiles which are active in the specified activation context. Active profiles will eventually be injected into the model.- Specified by:
getActiveProfiles
in interfaceProfileSelector
- Parameters:
profiles
- The profiles whose activation status should be determined, must not benull
.context
- The environmental context used to determine the activation status of a profile, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Returns:
- The profiles that have been activated, never
null
.
-