Class AllMacroMetadataLoader<T extends com.atlassian.plugin.ModuleDescriptor<Macro> & MacroMetadataSource>
- java.lang.Object
-
- com.atlassian.confluence.impl.macro.metadata.AllMacroMetadataLoader<T>
-
- Type Parameters:
T
- macro module descriptor
- All Implemented Interfaces:
AllMacroMetadataProvider<T>
,BiFunction<Class<T>,com.atlassian.plugin.predicate.ModuleDescriptorPredicate<Macro>,Map<String,MacroMetadata>>
public class AllMacroMetadataLoader<T extends com.atlassian.plugin.ModuleDescriptor<Macro> & MacroMetadataSource> extends Object implements AllMacroMetadataProvider<T>
Loads a map of macro metadata by macro names when given a macro module descriptor class and a macro module descriptor predicate.- Since:
- 5.8
-
-
Constructor Summary
Constructors Constructor Description AllMacroMetadataLoader(com.atlassian.plugin.PluginAccessor pluginAccessor, MacroFallbackParser macroFallbackParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull Map<String,MacroMetadata>
apply(Class<T> descriptorClass, com.atlassian.plugin.predicate.ModuleDescriptorPredicate<Macro> descriptorPredicate)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Constructor Detail
-
AllMacroMetadataLoader
public AllMacroMetadataLoader(com.atlassian.plugin.PluginAccessor pluginAccessor, MacroFallbackParser macroFallbackParser)
-
-
Method Detail
-
apply
public @NonNull Map<String,MacroMetadata> apply(Class<T> descriptorClass, com.atlassian.plugin.predicate.ModuleDescriptorPredicate<Macro> descriptorPredicate)
- Specified by:
apply
in interfaceBiFunction<Class<T extends com.atlassian.plugin.ModuleDescriptor<Macro> & MacroMetadataSource>,com.atlassian.plugin.predicate.ModuleDescriptorPredicate<Macro>,Map<String,MacroMetadata>>
-
-