public class DefaultProfileActivationContext extends Object implements ProfileActivationContext
Constructor and Description |
---|
DefaultProfileActivationContext() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getActiveProfileIds()
Gets the identifiers of those profiles that should be activated by explicit demand.
|
List<String> |
getInactiveProfileIds()
Gets the identifiers of those profiles that should be deactivated by explicit demand.
|
File |
getProjectDirectory()
Gets the base directory of the current project (if any).
|
Map<String,String> |
getProjectProperties()
Gets current calculated project properties
|
Map<String,String> |
getSystemProperties()
Gets the system properties to use for interpolation and profile activation.
|
Map<String,String> |
getUserProperties()
Gets the user properties to use for interpolation and profile activation.
|
DefaultProfileActivationContext |
setActiveProfileIds(List<String> activeProfileIds)
Sets the identifiers of those profiles that should be activated by explicit demand.
|
DefaultProfileActivationContext |
setInactiveProfileIds(List<String> inactiveProfileIds)
Sets the identifiers of those profiles that should be deactivated by explicit demand.
|
DefaultProfileActivationContext |
setProjectDirectory(File projectDirectory)
Sets the base directory of the current project.
|
DefaultProfileActivationContext |
setProjectProperties(Properties projectProperties) |
DefaultProfileActivationContext |
setSystemProperties(Map<String,String> systemProperties)
Sets the system properties to use for interpolation and profile activation.
|
DefaultProfileActivationContext |
setSystemProperties(Properties systemProperties)
Sets the system properties to use for interpolation and profile activation.
|
DefaultProfileActivationContext |
setUserProperties(Map<String,String> userProperties)
Sets the user properties to use for interpolation and profile activation.
|
DefaultProfileActivationContext |
setUserProperties(Properties userProperties)
Sets the user properties to use for interpolation and profile activation.
|
public DefaultProfileActivationContext()
public List<String> getActiveProfileIds()
ProfileActivationContext
getActiveProfileIds
in interface ProfileActivationContext
null
.public DefaultProfileActivationContext setActiveProfileIds(List<String> activeProfileIds)
activeProfileIds
- The identifiers of those profiles to activate, may be null
.null
.public List<String> getInactiveProfileIds()
ProfileActivationContext
getInactiveProfileIds
in interface ProfileActivationContext
null
.public DefaultProfileActivationContext setInactiveProfileIds(List<String> inactiveProfileIds)
inactiveProfileIds
- The identifiers of those profiles to deactivate, may be null
.null
.public Map<String,String> getSystemProperties()
ProfileActivationContext
System.getProperties()
and environment variables.getSystemProperties
in interface ProfileActivationContext
null
.public DefaultProfileActivationContext setSystemProperties(Properties systemProperties)
System.getProperties()
and environment variables.systemProperties
- The system properties, may be null
.null
.public DefaultProfileActivationContext setSystemProperties(Map<String,String> systemProperties)
System.getProperties()
and environment variables.systemProperties
- The system properties, may be null
.null
.public Map<String,String> getUserProperties()
ProfileActivationContext
-Dkey=value
parameter on the command
line.getUserProperties
in interface ProfileActivationContext
null
.public DefaultProfileActivationContext setUserProperties(Properties userProperties)
-Dkey=value
parameter on the command
line.userProperties
- The user properties, may be null
.null
.public DefaultProfileActivationContext setUserProperties(Map<String,String> userProperties)
-Dkey=value
parameter on the command
line.userProperties
- The user properties, may be null
.null
.public File getProjectDirectory()
ProfileActivationContext
getProjectDirectory
in interface ProfileActivationContext
null
if none.public DefaultProfileActivationContext setProjectDirectory(File projectDirectory)
projectDirectory
- The base directory of the current project, may be null
if profile activation
happens in the context of metadata retrieval rather than project building.null
.public Map<String,String> getProjectProperties()
ProfileActivationContext
getProjectProperties
in interface ProfileActivationContext
null
.public DefaultProfileActivationContext setProjectProperties(Properties projectProperties)
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.