@Experimental @Generated @ThreadSafe @Immutable public class ActivationFile extends Object implements Serializable, 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.| Modifier and Type | Class and Description |
|---|---|
static class |
ActivationFile.Builder
Builder class used to create ActivationFile instances.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExists()
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()
The name of the file that must be missing to activate the
profile.
|
static ActivationFile.Builder |
newBuilder()
Creates a new
ActivationFile builder instance. |
static ActivationFile.Builder |
newBuilder(ActivationFile from)
Creates a new
ActivationFile builder instance using the specified object as a basis. |
static ActivationFile.Builder |
newBuilder(ActivationFile from,
boolean forceCopy)
Creates a new
ActivationFile builder instance using the specified object as a basis. |
static ActivationFile.Builder |
newBuilder(boolean withDefaults)
Creates a new
ActivationFile builder instance using default values or not. |
static ActivationFile |
newInstance()
Creates a new
ActivationFile instance. |
static ActivationFile |
newInstance(boolean withDefaults)
Creates a new
ActivationFile instance using default values or not. |
ActivationFile.Builder |
with()
Creates a new builder with this object as the basis.
|
ActivationFile |
withExists(String exists)
Creates a new
ActivationFile instance using the specified exists. |
ActivationFile |
withMissing(String missing)
Creates a new
ActivationFile instance using the specified missing. |
public String getMissing()
Stringpublic String getExists()
Stringpublic InputLocation getLocation(Object key)
getLocation in interface InputLocationTracker@Nonnull public ActivationFile.Builder with()
Builder@Nonnull public ActivationFile withMissing(String missing)
ActivationFile instance using the specified missing.missing - the new String to useActivationFile with the specified missing@Nonnull public ActivationFile withExists(String exists)
ActivationFile instance using the specified exists.exists - the new String to useActivationFile with the specified exists@Nonnull public static ActivationFile newInstance()
ActivationFile instance.
Equivalent to newInstance( true ).ActivationFilenewInstance(boolean)@Nonnull public static ActivationFile newInstance(boolean withDefaults)
ActivationFile instance using default values or not.
Equivalent to newBuilder( withDefaults ).build().withDefaults - the boolean indicating whether default values should be usedActivationFile@Nonnull public static ActivationFile.Builder newBuilder()
ActivationFile builder instance.
Equivalent to newBuilder( true ).BuildernewBuilder(boolean)@Nonnull public static ActivationFile.Builder newBuilder(boolean withDefaults)
ActivationFile builder instance using default values or not.withDefaults - the boolean indicating whether default values should be usedBuilder@Nonnull public static ActivationFile.Builder newBuilder(ActivationFile from)
ActivationFile builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false ).from - the ActivationFile instance to use as a basisBuilder@Nonnull public static ActivationFile.Builder newBuilder(ActivationFile from, boolean forceCopy)
ActivationFile builder instance using the specified object as a basis.from - the ActivationFile instance to use as a basisforceCopy - the boolean indicating if a copy should be forcedBuilderCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.