Class GlobalBundleCache

java.lang.Object
org.eclipse.jgit.nls.GlobalBundleCache

class GlobalBundleCache extends Object
Global cache of translation bundles.

Every translation bundle will be cached here when it gets loaded for the first time from a thread. Another lookup for the same translation bundle (same locale and type) from the same or a different thread will return the cached one.

Note that NLS instances maintain per-thread Map of loaded translation bundles. Once a thread accesses a translation bundle it will keep reference to it and will not call lookupBundle(Locale, Class) again for the same translation bundle as long as its locale doesn't change.