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.
Caches module descriptors of a given module descriptor class and its
subclasses. This is useful in cases where you would otherwise frequently call
PluginAccessor.getEnabledModuleDescriptorsByClass(Class)
.- Since:
- 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Deprecated.Implementations of this interface are used to initialize aModuleDescriptorCache
-
Constructor Summary
ConstructorsConstructorDescriptionModuleDescriptorCache
(Class<? extends T> moduleDescriptorClass) Deprecated.ModuleDescriptorCache
(Class<? extends T> moduleDescriptorClass, com.atlassian.plugin.predicate.ModuleDescriptorPredicate moduleDescriptorPredicate) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the module descriptors currently in the cache.void
initialize
(ModuleDescriptorCache.Initializer<T> initializer) Deprecated.Initialize the cache with the module descriptors returned by the initializer.void
pluginModuleDisabled
(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) Deprecated.Removes module descriptors from the cache when plugin modules are disabled.void
pluginModuleEnabled
(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) Deprecated.Adds module descriptors to the cache when plugin modules are enabled.
-
Constructor Details
-
Method Details
-
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
Deprecated.Returns the module descriptors currently in the cache. -
initialize
Deprecated.Initialize the cache with the module descriptors returned by the initializer.
-
PluginAccessor.getEnabledModuleDescriptorsByClass(Class)
are cached now.