Package org.apache.maven.profiles
Class DefaultProfileManager
- java.lang.Object
-
- org.apache.maven.profiles.DefaultProfileManager
-
- All Implemented Interfaces:
ProfileManager
public class DefaultProfileManager extends Object implements ProfileManager
-
-
Constructor Summary
Constructors Constructor 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, Properties props)the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator propertiesDefaultProfileManager(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, Properties props)the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateAsDefault(String profileId)voidaddProfile(Profile profile)voidaddProfiles(List profiles)voidexplicitlyActivate(String profileId)voidexplicitlyActivate(List profileIds)voidexplicitlyDeactivate(String profileId)voidexplicitlyDeactivate(List profileIds)ListgetActiveProfiles()ListgetExplicitlyActivatedIds()ListgetExplicitlyDeactivatedIds()ListgetIdsActivatedByDefault()MapgetProfilesById()PropertiesgetRequestProperties()voidloadSettingsProfiles(Settings settings)
-
-
-
Constructor Detail
-
DefaultProfileManager
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container)
Deprecated.without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly in embedded envirnments.
-
DefaultProfileManager
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, Properties props)the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties
-
DefaultProfileManager
public 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
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, Settings settings, Properties props)the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties
-
-
Method Detail
-
getRequestProperties
public Properties getRequestProperties()
- Specified by:
getRequestPropertiesin interfaceProfileManager
-
getProfilesById
public Map getProfilesById()
- Specified by:
getProfilesByIdin interfaceProfileManager
-
addProfile
public void addProfile(Profile profile)
- Specified by:
addProfilein interfaceProfileManager
-
explicitlyActivate
public void explicitlyActivate(String profileId)
- Specified by:
explicitlyActivatein interfaceProfileManager
-
explicitlyActivate
public void explicitlyActivate(List profileIds)
- Specified by:
explicitlyActivatein interfaceProfileManager
-
explicitlyDeactivate
public void explicitlyDeactivate(String profileId)
- Specified by:
explicitlyDeactivatein interfaceProfileManager
-
explicitlyDeactivate
public void explicitlyDeactivate(List profileIds)
- Specified by:
explicitlyDeactivatein interfaceProfileManager
-
getActiveProfiles
public List getActiveProfiles() throws ProfileActivationException
- Specified by:
getActiveProfilesin interfaceProfileManager- Throws:
ProfileActivationException
-
addProfiles
public void addProfiles(List profiles)
- Specified by:
addProfilesin interfaceProfileManager
-
activateAsDefault
public void activateAsDefault(String profileId)
- Specified by:
activateAsDefaultin interfaceProfileManager
-
getExplicitlyActivatedIds
public List getExplicitlyActivatedIds()
- Specified by:
getExplicitlyActivatedIdsin interfaceProfileManager
-
getExplicitlyDeactivatedIds
public List getExplicitlyDeactivatedIds()
- Specified by:
getExplicitlyDeactivatedIdsin interfaceProfileManager
-
getIdsActivatedByDefault
public List getIdsActivatedByDefault()
- Specified by:
getIdsActivatedByDefaultin interfaceProfileManager
-
loadSettingsProfiles
public void loadSettingsProfiles(Settings settings)
- Specified by:
loadSettingsProfilesin interfaceProfileManager
-
-