Enum DependencyHandling
- java.lang.Object
-
- java.lang.Enum<DependencyHandling>
-
- org.apache.jackrabbit.vault.packaging.DependencyHandling
-
- All Implemented Interfaces:
Serializable
,Comparable<DependencyHandling>
public enum DependencyHandling extends Enum<DependencyHandling>
Defines how package dependencies influence package installation and un-installation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEST_EFFORT
Dependency checks are performed but not enforced.IGNORE
No dependency checks are enforcedREQUIRED
Dependency checks are performed but not enforced.STRICT
Full dependency checks are enforced.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DependencyHandling
valueOf(String name)
Returns the enum constant of this type with the specified name.static DependencyHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final DependencyHandling IGNORE
No dependency checks are enforced
-
BEST_EFFORT
public static final DependencyHandling BEST_EFFORT
Dependency checks are performed but not enforced. If a dependency is present but not installed, it will be installed prior to installing the referencing issue. However the installation will proceed, even if the dependency is missing. Un-installation will automatically uninstall referencing packages.
-
REQUIRED
public static final DependencyHandling REQUIRED
Dependency checks are performed but not enforced. If a dependency is present but not installed, it will be installed prior to installing the referencing issue. If a dependency is not present, installation fails. Un-installation will automatically uninstall referencing packages.
-
STRICT
public static final DependencyHandling STRICT
Full dependency checks are enforced. Packages with missing or uninstalled dependencies are not installed and packages that are dependencies of other packages cannot be un-installed.
-
-
Method Detail
-
values
public static DependencyHandling[] 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 (DependencyHandling c : DependencyHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DependencyHandling 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
-
-