Package org.apache.maven.profiles
Class DefaultProfileManager
- java.lang.Object
-
- org.apache.maven.profiles.DefaultProfileManager
-
- All Implemented Interfaces:
ProfileManager
@Deprecated public class DefaultProfileManager extends java.lang.Object implements ProfileManager
Deprecated.DefaultProfileManager
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>activatedIdsDeprecated.private java.util.List<java.lang.String>deactivatedIdsDeprecated.private java.util.List<java.lang.String>defaultIdsDeprecated.private org.codehaus.plexus.logging.LoggerloggerDeprecated.private java.util.Map<java.lang.String,Profile>profilesByIdDeprecated.private ProfileSelectorprofileSelectorDeprecated.private java.util.PropertiesrequestPropertiesDeprecated.
-
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 environments.DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, java.util.Properties props)Deprecated.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 Deprecated Methods Modifier and Type Method Description voidactivateAsDefault(java.lang.String profileId)Deprecated.voidaddProfile(Profile profile)Deprecated.voidaddProfiles(java.util.List<Profile> profiles)Deprecated.voidexplicitlyActivate(java.lang.String profileId)Deprecated.voidexplicitlyActivate(java.util.List<java.lang.String> profileIds)Deprecated.voidexplicitlyDeactivate(java.lang.String profileId)Deprecated.voidexplicitlyDeactivate(java.util.List<java.lang.String> profileIds)Deprecated.java.util.ListgetActiveProfiles()Deprecated.java.util.List<java.lang.String>getExplicitlyActivatedIds()Deprecated.java.util.List<java.lang.String>getExplicitlyDeactivatedIds()Deprecated.java.util.ListgetIdsActivatedByDefault()Deprecated.java.util.Map<java.lang.String,Profile>getProfilesById()Deprecated.java.util.PropertiesgetRequestProperties()Deprecated.
-
-
-
Field Detail
-
logger
@Requirement private org.codehaus.plexus.logging.Logger logger
Deprecated.
-
profileSelector
@Requirement private ProfileSelector profileSelector
Deprecated.
-
activatedIds
private java.util.List<java.lang.String> activatedIds
Deprecated.
-
deactivatedIds
private java.util.List<java.lang.String> deactivatedIds
Deprecated.
-
defaultIds
private java.util.List<java.lang.String> defaultIds
Deprecated.
-
profilesById
private java.util.Map<java.lang.String,Profile> profilesById
Deprecated.
-
requestProperties
private java.util.Properties requestProperties
Deprecated.
-
-
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 environments.
-
DefaultProfileManager
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, java.util.Properties props)Deprecated.the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties
-
-
Method Detail
-
getRequestProperties
public java.util.Properties getRequestProperties()
Deprecated.- Specified by:
getRequestPropertiesin interfaceProfileManager
-
getProfilesById
public java.util.Map<java.lang.String,Profile> getProfilesById()
Deprecated.- Specified by:
getProfilesByIdin interfaceProfileManager
-
addProfile
public void addProfile(Profile profile)
Deprecated.- Specified by:
addProfilein interfaceProfileManager
-
explicitlyActivate
public void explicitlyActivate(java.lang.String profileId)
Deprecated.- Specified by:
explicitlyActivatein interfaceProfileManager
-
explicitlyActivate
public void explicitlyActivate(java.util.List<java.lang.String> profileIds)
Deprecated.- Specified by:
explicitlyActivatein interfaceProfileManager
-
explicitlyDeactivate
public void explicitlyDeactivate(java.lang.String profileId)
Deprecated.- Specified by:
explicitlyDeactivatein interfaceProfileManager
-
explicitlyDeactivate
public void explicitlyDeactivate(java.util.List<java.lang.String> profileIds)
Deprecated.- Specified by:
explicitlyDeactivatein interfaceProfileManager
-
getActiveProfiles
public java.util.List getActiveProfiles() throws ProfileActivationExceptionDeprecated.- Specified by:
getActiveProfilesin interfaceProfileManager- Throws:
ProfileActivationException
-
addProfiles
public void addProfiles(java.util.List<Profile> profiles)
Deprecated.- Specified by:
addProfilesin interfaceProfileManager
-
activateAsDefault
public void activateAsDefault(java.lang.String profileId)
Deprecated.
-
getExplicitlyActivatedIds
public java.util.List<java.lang.String> getExplicitlyActivatedIds()
Deprecated.- Specified by:
getExplicitlyActivatedIdsin interfaceProfileManager
-
getExplicitlyDeactivatedIds
public java.util.List<java.lang.String> getExplicitlyDeactivatedIds()
Deprecated.- Specified by:
getExplicitlyDeactivatedIdsin interfaceProfileManager
-
getIdsActivatedByDefault
public java.util.List getIdsActivatedByDefault()
Deprecated.- Specified by:
getIdsActivatedByDefaultin interfaceProfileManager
-
-