Enum DynamicServiceRegistration.RegistrationMode

    • Enum Constant Detail

      • APPEND

        public static final DynamicServiceRegistration.RegistrationMode APPEND
        Append the service to the list of services already registered for the key; this may be the first service for this key. If the service is already registered, it will be ignored.
      • REPLACE

        public static final DynamicServiceRegistration.RegistrationMode REPLACE
        Replace all services registered for the key by this one. This will unregister all existing services (and the key) if there are any. Anyway, this will be the first service for this key afterwards.
    • Method Detail

      • values

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

        public static DynamicServiceRegistration.RegistrationMode 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