You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that the builder implements the config type, and the config type is consumed by other parts.
// this works because the builder implements MediaContextConfig
// not because the method is overloaded to accept Supplier<MediaContextConfig>
// and the call the .get() is equivalent to .build()
WebServer.builder().mediaContext( MediaContext.builder());
The text was updated successfully, but these errors were encountered:
Part 1 is done - we no longer accept builder where it should not have been accepted.
Part 2 - add methods that accept Supplier<? extends X> when a type is a Prototype
The following does NOT include the default media support that is registered by
io.helidon.nima.http.media.MediaContextBuilderInterceptor
.Instead you get a
MediaContext
that is empty and unable to read or write any entity types.However if you invoke
.build()
everything works ok.The issue is that the builder implements the config type, and the config type is consumed by other parts.
The text was updated successfully, but these errors were encountered: