public class ActivationFile extends Object implements Serializable, Cloneable, InputLocationTracker
missing
value
is the location of a file that needs to exist, and if it
doesn't, the profile will be
activated. On the other hand, exists
will
test for the existence of the file and if it is
there, the profile will be activated.${basedir}
,
System properties and request properties.Constructor and Description |
---|
ActivationFile() |
Modifier and Type | Method and Description |
---|---|
ActivationFile |
clone()
Method clone.
|
String |
getExists()
Get the name of the file that must exist to activate the
profile.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input
source.
|
String |
getMissing()
Get the name of the file that must be missing to activate
the
profile.
|
void |
setExists(String exists)
Set the name of the file that must exist to activate the
profile.
|
void |
setLocation(Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setMissing(String missing)
Set the name of the file that must be missing to activate
the
profile.
|
void |
setOtherLocation(Object key,
InputLocation location) |
public ActivationFile clone()
public String getExists()
public InputLocation getLocation(Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- public String getMissing()
public void setLocation(Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- location
- public void setOtherLocation(Object key, InputLocation location)
key
- location
- public void setExists(String exists)
exists
- public void setMissing(String missing)
missing
- Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.