@Named @Singleton public class DefaultProfileSelector extends java.lang.Object implements ProfileSelector
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ProfileActivator> |
activators |
| Constructor and Description |
|---|
DefaultProfileSelector() |
| Modifier and Type | Method and Description |
|---|---|
DefaultProfileSelector |
addProfileActivator(ProfileActivator profileActivator) |
java.util.List<Profile> |
getActiveProfiles(java.util.Collection<Profile> profiles,
ProfileActivationContext context,
ModelProblemCollector problems)
Determines the profiles which are active in the specified activation context.
|
private boolean |
isActive(Profile profile,
ProfileActivationContext context,
ModelProblemCollector problems) |
private boolean |
isActiveByDefault(Profile profile) |
@Inject private java.util.List<ProfileActivator> activators
public DefaultProfileSelector addProfileActivator(ProfileActivator profileActivator)
public java.util.List<Profile> getActiveProfiles(java.util.Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems)
ProfileSelectorgetActiveProfiles in interface ProfileSelectorprofiles - 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.null.private boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems)
private boolean isActiveByDefault(Profile profile)