Package org.apache.maven.model.profile
Class DefaultProfileSelector
java.lang.Object
org.apache.maven.model.profile.DefaultProfileSelector
- All Implemented Interfaces:
- ProfileSelector
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultProfileSelector
extends Object
implements ProfileSelector
Deprecated.
Calculates the active profiles among a given collection of profiles.
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.DefaultProfileSelector(List<ProfileActivator> activators) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionaddProfileActivator(ProfileActivator profileActivator) Deprecated.getActiveProfiles(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Deprecated.Determines the profiles which are active in the specified activation context.getActiveProfilesV4(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Deprecated.Determines the profiles which are active in the specified activation context.
- 
Constructor Details- 
DefaultProfileSelectorpublic DefaultProfileSelector()Deprecated.
- 
DefaultProfileSelectorDeprecated.
 
- 
- 
Method Details- 
addProfileActivatorDeprecated.
- 
getActiveProfilesV4public List<Profile> getActiveProfilesV4(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Deprecated.Description copied from interface:ProfileSelectorDetermines the profiles which are active in the specified activation context. Active profiles will eventually be injected into the model.- Specified by:
- getActiveProfilesV4in interface- ProfileSelector
- Parameters:
- profiles- The profiles whose activation status should be determined, must not be- null.
- context- The environmental context used to determine the activation status of a profile, must not be- null.
- problems- The container used to collect problems that were encountered, must not be- null.
- Returns:
- The profiles that have been activated, never null.
 
- 
getActiveProfilespublic List<Profile> getActiveProfiles(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Deprecated.Description copied from interface:ProfileSelectorDetermines the profiles which are active in the specified activation context. Active profiles will eventually be injected into the model.- Specified by:
- getActiveProfilesin interface- ProfileSelector
- Parameters:
- profiles- The profiles whose activation status should be determined, must not be- null.
- context- The environmental context used to determine the activation status of a profile, must not be- null.
- problems- The container used to collect problems that were encountered, must not be- null.
- Returns:
- The profiles that have been activated, never null.
 
 
- 
ModelBuilderinstead