Enum Class ConfigurationFile.InteractionPolicy
java.lang.Object
java.lang.Enum<ConfigurationFile.InteractionPolicy>
org.jboss.as.controller.persistence.ConfigurationFile.InteractionPolicy
- All Implemented Interfaces:
Serializable,Comparable<ConfigurationFile.InteractionPolicy>,Constable
- Enclosing class:
- ConfigurationFile
public static enum ConfigurationFile.InteractionPolicy
extends Enum<ConfigurationFile.InteractionPolicy>
Policy controlling how to deal with the configuration file
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDelete the existing file if it exists and create a new empty fileFail if there is an existing file and it is non-empty; otherwise create a new empty fileRequire that the specified file exist, but do not update itThe typical case; require that the specified file exist and allow updates to it -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the enum constant of this class with the specified name.static ConfigurationFile.InteractionPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
The typical case; require that the specified file exist and allow updates to it -
DISCARD
Delete the existing file if it exists and create a new empty file -
NEW
Fail if there is an existing file and it is non-empty; otherwise create a new empty file -
READ_ONLY
Require that the specified file exist, but do not update it
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isReadOnly
public boolean isReadOnly()
-