Enum DiscoveryScope

  • All Implemented Interfaces:
    Serializable, Comparable<DiscoveryScope>

    public enum DiscoveryScope
    extends Enum<DiscoveryScope>
    DiscoveryScope indicates whther only locally registered capabilities are to be used in discovery, or if the global registry is also to be used.
    • Enum Constant Detail

      • LOCAL_ONLY

        public static final DiscoveryScope LOCAL_ONLY
        Only capabilities registered locally will be discovered
      • LOCAL_THEN_GLOBAL

        public static final DiscoveryScope LOCAL_THEN_GLOBAL
        local capabilities will be discovered if available; otherwise the global registry will be queried
      • LOCAL_AND_GLOBAL

        public static final DiscoveryScope LOCAL_AND_GLOBAL
        local capabilities and capabilities from the global registry will be combined and returned
      • GLOBAL_ONLY

        public static final DiscoveryScope GLOBAL_ONLY
        Only the global registry will be queried during discovery
    • Method Detail

      • values

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

        public static DiscoveryScope 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