Enum LoadPolicy

    • Enum Constant Detail

      • PREFER_SHIPPED

        public static final LoadPolicy PREFER_SHIPPED
        First try to load a compatible version of the requested library shipped with the loading class. If that fails, try loading the system-provided version of that library.
      • PREFER_SYSTEM

        public static final LoadPolicy PREFER_SYSTEM
        First try to load the system version of the requested library. If that fails, try loading a compatible shipped version.
      • SHIPPED_ONLY

        public static final LoadPolicy SHIPPED_ONLY
        Only try to load a compatible version of the requested library shipped with the loading class.
      • SYSTEM_ONLY

        public static final LoadPolicy SYSTEM_ONLY
        Only try to load the system version of the requested library.
    • Method Detail

      • values

        public static LoadPolicy[] 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 (LoadPolicy c : LoadPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LoadPolicy 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 name
        NullPointerException - if the argument is null