Class JsonbProvider

java.lang.Object
jakarta.json.bind.spi.JsonbProvider

public abstract class JsonbProvider extends Object
Service provider for JSON Binding implementations. Provider implementors must implement all abstract methods. API clients can obtain instance of default provider by calling:
 
 JsonbProvider provider = JsonbProvider.provider();
 }
Specific provider instance lookup:
 
 JsonbProvider provider;
 try {
   JsonbProvider.provider("foo.bar.ProviderImpl");
 } catch (JsonbException e) {
   // provider not found or could not be instantiated
 }
where 'foo.bar.ProviderImpl' is a vendor implementation class extending JsonbProvider and identified to service loader as specified in ServiceLoader documentation.
All the methods in this class are allowed to be called by multiple concurrent threads.
Since:
JSON Binding 1.0
See Also: