Package com.atlassian.confluence.plugin
Class ModuleDescriptorCache<T extends com.atlassian.plugin.ModuleDescriptor<?>>
- java.lang.Object
-
- com.atlassian.confluence.plugin.ModuleDescriptorCache<T>
-
@Deprecated public class ModuleDescriptorCache<T extends com.atlassian.plugin.ModuleDescriptor<?>> extends Object
Deprecated.since 7.0.1. All uses ofPluginAccessor.getEnabledModuleDescriptorsByClass(Class)are cached now.Caches module descriptors of a given module descriptor class and its subclasses. This is useful in cases where you would otherwise frequently callPluginAccessor.getEnabledModuleDescriptorsByClass(Class).- Since:
- 3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceModuleDescriptorCache.Initializer<T>Deprecated.Implementations of this interface are used to initialize aModuleDescriptorCache
-
Constructor Summary
Constructors Constructor Description ModuleDescriptorCache(Class<? extends T> moduleDescriptorClass)Deprecated.ModuleDescriptorCache(Class<? extends T> moduleDescriptorClass, com.atlassian.plugin.predicate.ModuleDescriptorPredicate moduleDescriptorPredicate)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Collection<T>getDescriptors()Deprecated.Returns the module descriptors currently in the cache.voidinitialize(ModuleDescriptorCache.Initializer<T> initializer)Deprecated.Initialize the cache with the module descriptors returned by the initializer.voidpluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)Deprecated.Removes module descriptors from the cache when plugin modules are disabled.voidpluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)Deprecated.Adds module descriptors to the cache when plugin modules are enabled.
-
-
-
Method Detail
-
pluginModuleEnabled
public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
Deprecated.Adds module descriptors to the cache when plugin modules are enabled.
-
pluginModuleDisabled
public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
Deprecated.Removes module descriptors from the cache when plugin modules are disabled.
-
getDescriptors
public Collection<T> getDescriptors()
Deprecated.Returns the module descriptors currently in the cache.
-
initialize
public void initialize(ModuleDescriptorCache.Initializer<T> initializer)
Deprecated.Initialize the cache with the module descriptors returned by the initializer.
-
-