public class Activation extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Modifier and Type | Field and Description |
---|---|
private boolean |
activeByDefault
If set to true, this profile will be active unless another
profile in this
pom is activated using the command line -P
option or by one of that profile's
activators.
|
private InputLocation |
activeByDefaultLocation
Field activeByDefaultLocation.
|
private ActivationFile |
file
Specifies that this profile will be activated based on
existence of a file.
|
private InputLocation |
fileLocation
Field fileLocation.
|
private java.lang.String |
jdk
Specifies that this profile will be activated
when a matching JDK is detected.
|
private InputLocation |
jdkLocation
Field jdkLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
private ActivationOS |
os
Specifies that this profile will be activated when matching
operating system
attributes are detected.
|
private InputLocation |
osLocation
Field osLocation.
|
private ActivationProperty |
property
Specifies that this profile will be activated when this
system property is
specified.
|
private InputLocation |
propertyLocation
Field propertyLocation.
|
Constructor and Description |
---|
Activation() |
Modifier and Type | Method and Description |
---|---|
Activation |
clone()
Method clone.
|
ActivationFile |
getFile()
Get specifies that this profile will be activated based on
existence of a file.
|
java.lang.String |
getJdk()
Get specifies that this profile will be activated when a
matching JDK is detected.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
ActivationOS |
getOs()
Get specifies that this profile will be activated when
matching operating system
attributes are detected.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
ActivationProperty |
getProperty()
Get specifies that this profile will be activated when this
system property is
specified.
|
boolean |
isActiveByDefault()
Get if set to true, this profile will be active unless
another profile in this
pom is activated using the command line -P
option or by one of that profile's
activators.
|
void |
setActiveByDefault(boolean activeByDefault)
Set if set to true, this profile will be active unless
another profile in this
pom is activated using the command line -P
option or by one of that profile's
activators.
|
void |
setFile(ActivationFile file)
Set specifies that this profile will be activated based on
existence of a file.
|
void |
setJdk(java.lang.String jdk)
Set specifies that this profile will be activated when a
matching JDK is detected.
|
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setOs(ActivationOS os)
Set specifies that this profile will be activated when
matching operating system
attributes are detected.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
void |
setProperty(ActivationProperty property)
Set specifies that this profile will be activated when this
system property is
specified.
|
private boolean activeByDefault
private java.lang.String jdk
1.4
only activates on
JDKs versioned 1.4,
while !1.4
matches any JDK that is
not version 1.4. Ranges are supported too:
[1.5,)
activates when the JDK is
1.5 minimum.private ActivationOS os
private ActivationProperty property
private ActivationFile file
private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation activeByDefaultLocation
private InputLocation jdkLocation
private InputLocation osLocation
private InputLocation propertyLocation
private InputLocation fileLocation
public Activation clone()
clone
in class java.lang.Object
public ActivationFile getFile()
public java.lang.String getJdk()
1.4
only activates on
JDKs versioned 1.4,
while !1.4
matches any JDK that is
not version 1.4. Ranges are supported too:
[1.5,)
activates when the JDK is
1.5 minimum.public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- a key object.public ActivationOS getOs()
public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- a key object.location
- a location object.public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- a key object.location
- a location object.private InputLocation getOtherLocation(java.lang.Object key)
key
- a key object.public ActivationProperty getProperty()
public boolean isActiveByDefault()
public void setActiveByDefault(boolean activeByDefault)
activeByDefault
- a activeByDefault object.public void setFile(ActivationFile file)
file
- a file object.public void setJdk(java.lang.String jdk)
1.4
only activates on
JDKs versioned 1.4,
while !1.4
matches any JDK that is
not version 1.4. Ranges are supported too:
[1.5,)
activates when the JDK is
1.5 minimum.jdk
- a jdk object.public void setOs(ActivationOS os)
os
- a os object.public void setProperty(ActivationProperty property)
property
- a property object.