T
- macro module descriptorpublic class AllMacroMetadataCache<T extends com.atlassian.plugin.ModuleDescriptor<Macro> & MacroMetadataSource> extends Object implements AllMacroMetadataProvider<T>
Constructor and Description |
---|
AllMacroMetadataCache(com.atlassian.vcache.VCacheFactory cacheFactory,
AllMacroMetadataProvider<T> allMacroMetadataProvider,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar) |
Modifier and Type | Method and Description |
---|---|
@NonNull Map<String,MacroMetadata> |
apply(Class<T> descriptorClass,
com.atlassian.plugin.predicate.ModuleDescriptorPredicate<Macro> descriptorPredicate) |
void |
onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) |
void |
onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) |
void |
registerForEvents() |
void |
unregisterForEvents() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public AllMacroMetadataCache(com.atlassian.vcache.VCacheFactory cacheFactory, AllMacroMetadataProvider<T> allMacroMetadataProvider, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
@PostConstruct public void registerForEvents()
@PreDestroy public void unregisterForEvents()
public @NonNull Map<String,MacroMetadata> apply(Class<T> descriptorClass, com.atlassian.plugin.predicate.ModuleDescriptorPredicate<Macro> descriptorPredicate)
apply
in interface BiFunction<Class<T extends com.atlassian.plugin.ModuleDescriptor<Macro> & MacroMetadataSource>,com.atlassian.plugin.predicate.ModuleDescriptorPredicate<Macro>,Map<String,MacroMetadata>>
public void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
public void onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
Copyright © 2003–2020 Atlassian. All rights reserved.