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.cache.CacheFactory cacheFactory,
AllMacroMetadataProvider<T> allMacroMetadataProvider,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar) |
Modifier and Type | Method and Description |
---|---|
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.cache.CacheFactory cacheFactory, AllMacroMetadataProvider<T> allMacroMetadataProvider, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
@PostConstruct public void registerForEvents()
@PreDestroy public void unregisterForEvents()
@Nonnull public 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–2016 Atlassian. All rights reserved.