Class ChemCompGroupFactory

    • Method Detail

      • setChemCompProvider

        public static void setChemCompProvider​(ChemCompProvider provider)
        The new ChemCompProvider will be set in the static variable, so this provider will be used from now on until it is changed again. Note that this change can have unexpected behavior of code executed afterwards.

        Changing the provider also resets the cache, so any groups previously accessed will be reread or re-downloaded.

        Parameters:
        provider -
      • clearCache

        public static void clearCache()
        Force the in-memory cache to be reset. Note that the ChemCompProvider may have additional memory or disk caches that need to be cleared too.