Class JsonBindingFeature

All Implemented Interfaces:

public class JsonBindingFeature extends Object implements Feature
Feature used to register JSON-B providers.

The Feature is automatically enabled when JsonBindingAutoDiscoverable is on classpath. Default JSON-B configuration obtained by calling JsonbBuilder.create() is used.

Custom configuration, if required, can be achieved by implementing custom ContextResolver and registering it as a provider into JAX-RS runtime:

 @class JsonbContextResolver implements ContextResolver<Jsonb> {
      public Jsonb getContext(Class<?> type) {
          JsonbConfig config = new JsonbConfig();
          // add custom configuration
          return JsonbBuilder.create(config);
Adam Lindenthal
  • Constructor Details

    • JsonBindingFeature

      public JsonBindingFeature()
  • Method Details