Package jakarta.ws.rs

Interface SeBootstrap.Configuration.Builder

    • Method Detail

      • property

        SeBootstrap.Configuration.Builder property​(java.lang.String name,
                                                   java.lang.Object value)
        Sets the property name to the provided value.

        This method does not check the validity, type or syntax of the provided value.

        Parameters:
        name - name of the parameter to set.
        value - value to set, or null to use the default value.
        Returns:
        the updated builder.
        Since:
        3.1
      • from

        <T> SeBootstrap.Configuration.Builder from​(java.util.function.BiFunction<java.lang.String,​java.lang.Class<T>,​java.util.Optional<T>> propertiesProvider)
        Convenience method for bulk-loading configuration from a property supplier.

        Implementations ask the passed provider function for the actual values of all their supported properties, before returning from this configuration method. For each single request the implementation provides the name of the property and the expected data type of the value. If no such property exists (i. e. either the name is unknown or misspelled, or the type does not exactly match), the Optional is empty.

        Type Parameters:
        T - Type of the requested property value.
        Parameters:
        propertiesProvider - Retrieval function of externally managed properties. MUST NOT return null.
        Returns:
        the updated builder.
        Since:
        3.1
      • from

        default SeBootstrap.Configuration.Builder from​(java.lang.Object externalConfig)
        Optional convenience method to bulk-load external configuration.

        Implementations are free to support any external configuration mechanics, or none at all. It is completely up to the implementation what set of properties is effectively loaded from the provided external configuration, possibly none at all.

        If the passed external configuration mechanics is unsupported, this method MUST simply do nothing.

        Portable applications should not call this method, as the outcome is completely implementation-specific.

        Parameters:
        externalConfig - source of externally managed properties
        Returns:
        the updated builder.
        Since:
        3.1