public class ResourceBundleCacheInspector extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_CLASS_LOADER_NAME |
Constructor and Description |
---|
ResourceBundleCacheInspector() |
Modifier and Type | Method and Description |
---|---|
Collection<CachedPluginBundle> |
inspect()
This method performs some nasty checks against internal private static cache
ResourceBundle.cacheList . |
public static final String PLUGIN_CLASS_LOADER_NAME
public Collection<CachedPluginBundle> inspect()
ResourceBundle.cacheList
. The goal of this check is to
find if any plugin resources are still being cached internally by ResourceBundle
. All plugin
bundles should be removed from ResourceBundle.cacheList
to avoid duplication of bundles keys.
Since ResourceBundle.cacheList
is private static cache we are doing some reflections magic to
get into it.CachedPluginBundle
- plugin bundles which are
still being cached in ResourceBundle.cacheList
Copyright © 2002-2015 Atlassian. All Rights Reserved.