Initialize the providers.
Initialize the providers.
The implementation should perform whatever work is necessary to
initialize the providers. This will result in one or more calls to ZoneRulesProvider#registerProvider(ZoneRulesProvider)
.
It is vital that the instance of
ZoneRulesProvider
is not created until this method is invoked.
It is guaranteed that this method will be invoked once and only once.
Controls how the time-zone rules are initialized.
The default behavior is to use
ServiceLoader
to find instances ofZoneRulesProvider
. Use the#setInitializer(ZoneRulesInitializer)
method to replace this behavior. The initializer instance must perform the work of creating theZoneRulesProvider
within the#initializeProviders()
method to ensure that the provider is not initialized too early.The initializer must be set before class loading of any other ThreeTen-Backport class to have any effect!
This class has been added primarily for the benefit of Android.