MediaContext (media.common) Configuration

Type: io.helidon.media.common.MediaContext

Configuration options

Required configuration options
keytypedefault valuedescription
services

io.helidon.media.common.spi.MediaSupportProvider[] (service provider interface)

 

Configures this Builder from the supplied Config. <table class="config"> <caption>Optional configuration parameters</caption> <tr> <th>key</th> <th>description</th> </tr> <tr> <td>register-defaults</td> <td>Whether to register default reader and writers</td> </tr> <tr> <td>discover-services</td> <td>Whether to discover services via service loader</td> </tr> <tr> <td>filter-services</td> <td>Whether to filter discovered services by service names in services section</td> </tr> <tr> <td>services</td> <td>Configuration section for each service. Each entry has to have "name" parameter. It is also used for filtering of loaded services.</td> </tr> </table>

Optional configuration options
keytypedefault valuedescription
discover-services

boolean

false

Whether Java Service Loader should be used to load MediaSupportProvider.

filter-services

boolean

false

Whether services loaded by Java Service Loader should be filtered. All of the services which should pass the filter, have to be present under services section of configuration.

register-defaults

boolean

true

Whether default readers and writers should be registered.