public class DefaultProfileManager extends java.lang.Object implements ProfileManager
| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
activatedIds |
private org.codehaus.plexus.PlexusContainer |
container |
private java.util.List |
deactivatedIds |
private java.util.List |
defaultIds |
private java.util.Map |
profilesById |
private java.util.Properties |
requestProperties |
| Constructor and Description |
|---|
DefaultProfileManager(org.codehaus.plexus.PlexusContainer container)
Deprecated.
without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly
in embedded envirnments.
|
DefaultProfileManager(org.codehaus.plexus.PlexusContainer container,
java.util.Properties props)
the properties passed to the profile manager are the props that
are passed to maven, possibly containing profile activator properties
|
DefaultProfileManager(org.codehaus.plexus.PlexusContainer container,
Settings settings)
Deprecated.
without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly
in embedded envirnments.
|
DefaultProfileManager(org.codehaus.plexus.PlexusContainer container,
Settings settings,
java.util.Properties props)
the properties passed to the profile manager are the props that
are passed to maven, possibly containing profile activator properties
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateAsDefault(java.lang.String profileId) |
void |
addProfile(Profile profile) |
void |
addProfiles(java.util.List profiles) |
void |
explicitlyActivate(java.util.List profileIds) |
void |
explicitlyActivate(java.lang.String profileId) |
void |
explicitlyDeactivate(java.util.List profileIds) |
void |
explicitlyDeactivate(java.lang.String profileId) |
java.util.List |
getActiveProfiles() |
java.util.List |
getExplicitlyActivatedIds() |
java.util.List |
getExplicitlyDeactivatedIds() |
java.util.List |
getIdsActivatedByDefault() |
java.util.Map |
getProfilesById() |
java.util.Properties |
getRequestProperties() |
private boolean |
isActive(Profile profile) |
void |
loadSettingsProfiles(Settings settings) |
private org.codehaus.plexus.PlexusContainer container
private java.util.List activatedIds
private java.util.List deactivatedIds
private java.util.List defaultIds
private java.util.Map profilesById
private java.util.Properties requestProperties
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container)
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container,
java.util.Properties props)
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container,
Settings settings)
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container,
Settings settings,
java.util.Properties props)
public java.util.Properties getRequestProperties()
getRequestProperties in interface ProfileManagerpublic java.util.Map getProfilesById()
getProfilesById in interface ProfileManagerpublic void addProfile(Profile profile)
addProfile in interface ProfileManagerpublic void explicitlyActivate(java.lang.String profileId)
explicitlyActivate in interface ProfileManagerpublic void explicitlyActivate(java.util.List profileIds)
explicitlyActivate in interface ProfileManagerpublic void explicitlyDeactivate(java.lang.String profileId)
explicitlyDeactivate in interface ProfileManagerpublic void explicitlyDeactivate(java.util.List profileIds)
explicitlyDeactivate in interface ProfileManagerpublic java.util.List getActiveProfiles()
throws ProfileActivationException
getActiveProfiles in interface ProfileManagerProfileActivationExceptionprivate boolean isActive(Profile profile) throws ProfileActivationException
ProfileActivationExceptionpublic void addProfiles(java.util.List profiles)
addProfiles in interface ProfileManagerpublic void activateAsDefault(java.lang.String profileId)
activateAsDefault in interface ProfileManagerpublic java.util.List getExplicitlyActivatedIds()
getExplicitlyActivatedIds in interface ProfileManagerpublic java.util.List getExplicitlyDeactivatedIds()
getExplicitlyDeactivatedIds in interface ProfileManagerpublic java.util.List getIdsActivatedByDefault()
getIdsActivatedByDefault in interface ProfileManagerpublic void loadSettingsProfiles(Settings settings)
loadSettingsProfiles in interface ProfileManager