PluginAccessor.getEnabledModuleDescriptorsByClass(Class)
are cached now.@Deprecated public class ModuleDescriptorCache<T extends com.atlassian.plugin.ModuleDescriptor<?>> extends Object
PluginAccessor.getEnabledModuleDescriptorsByClass(Class)
.Modifier and Type | Class and Description |
---|---|
static interface |
ModuleDescriptorCache.Initializer<T>
Deprecated.
Implementations of this interface are used to initialize a
ModuleDescriptorCache |
Constructor and Description |
---|
ModuleDescriptorCache(Class<? extends T> moduleDescriptorClass)
Deprecated.
|
ModuleDescriptorCache(Class<? extends T> moduleDescriptorClass,
com.atlassian.plugin.predicate.ModuleDescriptorPredicate moduleDescriptorPredicate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Collection<T> |
getDescriptors()
Deprecated.
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.
|
public ModuleDescriptorCache(Class<? extends T> moduleDescriptorClass)
public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
public Collection<T> getDescriptors()
public void initialize(ModuleDescriptorCache.Initializer<T> initializer)
Copyright © 2003–2019 Atlassian. All rights reserved.