Class PluginCacheRegistry
- java.lang.Object
-
- org.jivesoftware.openfire.container.PluginCacheRegistry
-
public class PluginCacheRegistry extends Object
A simple registry of cache configuration data for plugins.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheInfogetCacheInfo(String name)static PluginCacheRegistrygetInstance()voidregisterCache(String pluginName, CacheInfo info)Registers cache configuration data for a give cache and plugin.voidunregisterCaches(String pluginName)Unregisters all caches for the given plugin.
-
-
-
Method Detail
-
getInstance
public static PluginCacheRegistry getInstance()
-
registerCache
public void registerCache(String pluginName, CacheInfo info)
Registers cache configuration data for a give cache and plugin.- Parameters:
pluginName- the name of the plugin which will use the cache.info- the cache configuration data.
-
unregisterCaches
public void unregisterCaches(String pluginName)
Unregisters all caches for the given plugin.- Parameters:
pluginName- the name of the plugin whose caches will be unregistered.
-
-