org.apache.maven.profiles
Class DefaultProfileManager

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

public class DefaultProfileManager
extends java.lang.Object
implements ProfileManager


Constructor Summary
DefaultProfileManager(org.codehaus.plexus.PlexusContainer container)
          Deprecated. Using this is dangerous when extensions or non-global system properties are in play.
DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, ProfileActivationContext profileActivationContext)
          the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties
 
Method Summary
 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 getActiveProfiles(Model model)
           
 java.util.List getExplicitlyActivatedIds()
           
 java.util.List getExplicitlyDeactivatedIds()
           
static java.lang.String getGroupId(Model model)
           
 java.util.List getIdsActivatedByDefault()
           
 ProfileActivationContext getProfileActivationContext()
           
 java.util.Map getProfilesById()
           
 void setProfileActivationContext(ProfileActivationContext profileActivationContext)
           
 
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,
                             ProfileActivationContext profileActivationContext)
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)
Deprecated. Using this is dangerous when extensions or non-global system properties are in play.

Method Detail

getProfileActivationContext

public ProfileActivationContext getProfileActivationContext()
Specified by:
getProfileActivationContext in interface ProfileManager

setProfileActivationContext

public void setProfileActivationContext(ProfileActivationContext profileActivationContext)
Specified by:
setProfileActivationContext in interface ProfileManager

getProfilesById

public java.util.Map getProfilesById()
Specified by:
getProfilesById in interface ProfileManager

addProfile

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

explicitlyActivate

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

explicitlyActivate

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

explicitlyDeactivate

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

explicitlyDeactivate

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

getActiveProfiles

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

getActiveProfiles

public java.util.List getActiveProfiles(Model model)
                                 throws ProfileActivationException
Specified by:
getActiveProfiles in interface ProfileManager
Throws:
ProfileActivationException

addProfiles

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

activateAsDefault

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

getExplicitlyActivatedIds

public java.util.List getExplicitlyActivatedIds()
Specified by:
getExplicitlyActivatedIds in interface ProfileManager

getExplicitlyDeactivatedIds

public java.util.List getExplicitlyDeactivatedIds()
Specified by:
getExplicitlyDeactivatedIds in interface ProfileManager

getIdsActivatedByDefault

public java.util.List getIdsActivatedByDefault()
Specified by:
getIdsActivatedByDefault in interface ProfileManager

getGroupId

public static java.lang.String getGroupId(Model model)


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