Enum RegistrationBehavior

    • Enum Constant Detail

      • IGNORE

        public static final RegistrationBehavior IGNORE
        Specifies that registration should be ignored and skipped (without raising an error or exception) if the artifact to be registered is already known.
      • REPLACE

        public static final RegistrationBehavior REPLACE
        Specifies that registration should replace an existing identified artifact with that of which was specified.
      • FAIL

        public static final RegistrationBehavior FAIL
        Specifies that registration should fail (by raising an exception) if the identified artifact is already registered.
      • ALWAYS

        public static final RegistrationBehavior ALWAYS
        Specifies that registration must always occur. If an identifiable artifact is already registered, a new identity is generated (based on the provided identity) and the specified artifact is registered.
    • Method Detail

      • values

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

        public static RegistrationBehavior 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null