setDefaultProvider

Overrides the default provider with the given provider.

Must be called at most once and before any call to getDefaultProvider, otherwise an IllegalStateException is thrown.

Use getDefaultProvider to retrieve the provider configured here or resolved from the registry.