Package org.apache.karaf.features
Enum FeaturesService.SnapshotUpdateBehavior
- java.lang.Object
-
- java.lang.Enum<FeaturesService.SnapshotUpdateBehavior>
-
- org.apache.karaf.features.FeaturesService.SnapshotUpdateBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<FeaturesService.SnapshotUpdateBehavior>
- Enclosing interface:
- FeaturesService
public static enum FeaturesService.SnapshotUpdateBehavior extends Enum<FeaturesService.SnapshotUpdateBehavior>
Configuration options for checking whether update'able bundle should really be updated
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeaturesService.SnapshotUpdateBehavior
fromString(String updateSnapshots)
String
getValue()
static FeaturesService.SnapshotUpdateBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static FeaturesService.SnapshotUpdateBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final FeaturesService.SnapshotUpdateBehavior None
Never update
-
Crc
public static final FeaturesService.SnapshotUpdateBehavior Crc
Update if CRC differs
-
Always
public static final FeaturesService.SnapshotUpdateBehavior Always
Always update
-
-
Method Detail
-
values
public static FeaturesService.SnapshotUpdateBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FeaturesService.SnapshotUpdateBehavior c : FeaturesService.SnapshotUpdateBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FeaturesService.SnapshotUpdateBehavior valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
-
fromString
public static FeaturesService.SnapshotUpdateBehavior fromString(String updateSnapshots)
-
-