org.apache.maven.profiles
Class DefaultProfileManager

java.lang.Object
  extended by org.apache.maven.profiles.DefaultProfileManager
All Implemented Interfaces:
ProfileManager

public class DefaultProfileManager
extends Object
implements ProfileManager


Constructor Summary
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 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, Properties props)
          the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties
 
Method Summary
 void activateAsDefault(String profileId)
           
 void addProfile(Profile profile)
           
 void addProfiles(List profiles)
           
 void explicitlyActivate(List profileIds)
           
 void explicitlyActivate(String profileId)
           
 void explicitlyDeactivate(List profileIds)
           
 void explicitlyDeactivate(String profileId)
           
 List getActiveProfiles()
           
 List getExplicitlyActivatedIds()
           
 List getExplicitlyDeactivatedIds()
           
 List getIdsActivatedByDefault()
           
 Map getProfilesById()
           
 Properties getRequestProperties()
           
 void loadSettingsProfiles(Settings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getRequestProperties in interface ProfileManager

getProfilesById

public Map getProfilesById()
Specified by:
getProfilesById in interface ProfileManager

addProfile

public void addProfile(Profile profile)
Specified by:
addProfile in interface ProfileManager

explicitlyActivate

public void explicitlyActivate(String profileId)
Specified by:
explicitlyActivate in interface ProfileManager

explicitlyActivate

public void explicitlyActivate(List profileIds)
Specified by:
explicitlyActivate in interface ProfileManager

explicitlyDeactivate

public void explicitlyDeactivate(String profileId)
Specified by:
explicitlyDeactivate in interface ProfileManager

explicitlyDeactivate

public void explicitlyDeactivate(List profileIds)
Specified by:
explicitlyDeactivate in interface ProfileManager

getActiveProfiles

public List getActiveProfiles()
                       throws ProfileActivationException
Specified by:
getActiveProfiles in interface ProfileManager
Throws:
ProfileActivationException

addProfiles

public void addProfiles(List profiles)
Specified by:
addProfiles in interface ProfileManager

activateAsDefault

public void activateAsDefault(String profileId)
Specified by:
activateAsDefault in interface ProfileManager

getExplicitlyActivatedIds

public List getExplicitlyActivatedIds()
Specified by:
getExplicitlyActivatedIds in interface ProfileManager

getExplicitlyDeactivatedIds

public List getExplicitlyDeactivatedIds()
Specified by:
getExplicitlyDeactivatedIds in interface ProfileManager

getIdsActivatedByDefault

public List getIdsActivatedByDefault()
Specified by:
getIdsActivatedByDefault in interface ProfileManager

loadSettingsProfiles

public void loadSettingsProfiles(Settings settings)
Specified by:
loadSettingsProfiles in interface ProfileManager


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.