Codota Logo
ZoneRulesProvider.registerProvider
Code IndexAdd Codota to your IDE (free)

How to use
registerProvider
method
in
org.threeten.bp.zone.ZoneRulesProvider

Best Java code snippets using org.threeten.bp.zone.ZoneRulesProvider.registerProvider (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: JakeWharton/ThreeTenABP

 @Override protected void initializeProviders() {
  TzdbZoneRulesProvider provider;

  InputStream is = null;
  try {
   is = context.getAssets().open("org/threeten/bp/TZDB.dat");
   provider = new TzdbZoneRulesProvider(is);
  } catch (IOException e) {
   throw new IllegalStateException("TZDB.dat missing from assets.", e);
  } finally {
   if (is != null) {
    try {
     is.close();
    } catch (IOException ignored) {
    }
   }
  }

  ZoneRulesProvider.registerProvider(provider);
 }
}
origin: gabrielittner/lazythreetenbp

  @Override
  protected void initializeProviders() {
    ZoneRulesProvider.registerProvider(new LazyZoneRulesProvider(application));
  }
}
origin: ThreeTen/threetenbp

  @Override
  protected void initializeProviders() {
    ServiceLoader<ZoneRulesProvider> loader = ServiceLoader.load(ZoneRulesProvider.class, ZoneRulesProvider.class.getClassLoader());
    for (ZoneRulesProvider provider : loader) {
      try {
        ZoneRulesProvider.registerProvider(provider);
      } catch (ServiceConfigurationError ex) {
        if (!(ex.getCause() instanceof SecurityException)) {
          throw ex;
        }
      }
    }
  }
}
origin: org.threeten/threetenbp

  @Override
  protected void initializeProviders() {
    ServiceLoader<ZoneRulesProvider> loader = ServiceLoader.load(ZoneRulesProvider.class, ZoneRulesProvider.class.getClassLoader());
    for (ZoneRulesProvider provider : loader) {
      try {
        ZoneRulesProvider.registerProvider(provider);
      } catch (ServiceConfigurationError ex) {
        if (!(ex.getCause() instanceof SecurityException)) {
          throw ex;
        }
      }
    }
  }
}
org.threeten.bp.zoneZoneRulesProviderregisterProvider

Javadoc

Registers a zone rules provider.

This adds a new provider to those currently available. A provider supplies rules for one or more zone IDs. A provider cannot be registered if it supplies a zone ID that has already been registered. See the notes on time-zone IDs in ZoneId, especially the section on using the concept of a "group" to make IDs unique.

To ensure the integrity of time-zones already created, there is no way to deregister providers.

Popular methods of ZoneRulesProvider

  • getAvailableZoneIds
    Gets the set of available zone IDs. These zone IDs are loaded and available for use by ZoneId.
  • getRules
    Gets the rules for the zone ID. This returns the latest available rules for the zone ID. This meth
  • getProvider
    Gets the provider for the zone ID.
  • provideRefresh
    SPI method to refresh the rules from the underlying data provider. This method provides the opportun
  • provideRules
    SPI method to get the rules for the zone ID. This loads the rules for the region and version specifi
  • provideVersions
    SPI method to get the history of rules for the zone ID. This returns a map of historical rules keyed
  • provideZoneIds
    SPI method to get the available zone IDs. This obtains the IDs that this ZoneRulesProvider provides.
  • registerProvider0
    Registers the provider.

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JLabel (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now