Package io.fabric8.maven.docker.config
Enum WatchMode
- java.lang.Object
-
- java.lang.Enum<WatchMode>
-
- io.fabric8.maven.docker.config.WatchMode
-
- All Implemented Interfaces:
Serializable,Comparable<WatchMode>
public enum WatchMode extends Enum<WatchMode>
How to watch for image changes- Since:
- 16/06/15
- Author:
- roland
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()booleanisBuild()booleanisCopy()booleanisRun()static WatchModevalueOf(String name)Returns the enum constant of this type with the specified name.static WatchMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
copy
public static final WatchMode copy
Copy watched artefacts into container
-
build
public static final WatchMode build
Build only images
-
run
public static final WatchMode run
Run images
-
both
public static final WatchMode both
Build and run images
-
none
public static final WatchMode none
Neither build nor run
-
-
Method Detail
-
values
public static WatchMode[] 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 (WatchMode c : WatchMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WatchMode 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
-
isRun
public boolean isRun()
-
isBuild
public boolean isBuild()
-
isCopy
public boolean isCopy()
-
getDescription
public String getDescription()
-
-