Class ViewMacroMarshallerFactoryImpl
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshallerFactoryImpl
- All Implemented Interfaces:
ViewMacroMarshallerFactory
-
Constructor Summary
ConstructorsConstructorDescriptionViewMacroMarshallerFactoryImpl
(MacroManager macroManager, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder, LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter, com.atlassian.event.api.EventPublisher eventPublisher, XMLOutputFactory xmlOutputFactory, PlaceholderUrlFactory placeholderUrlFactory, ConfluenceMonitoring monitoring, MacroAsyncRenderWhitelist macroAsyncRenderWhiteList, MacroMetadataManager macroMetadataManager, MacroSchemaMigrator macroSchemaMigrator, ViewMacroWrapper viewMacroWrapper, MacroRenderingMonitor macroRenderingMonitor) -
Method Summary
Modifier and TypeMethodDescriptionGet a new instance of the default view macro Marshaller.newMacroMarshaller
(MacroManager macroManager, Marshaller<MacroDefinition> unknownMacroMarshaller, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder) Get a new instance of a macro Marshaller which uses the supplied MacroManager, unknown macro Marshaller and ViewMacroErrorPlaceholder.
-
Constructor Details
-
ViewMacroMarshallerFactoryImpl
public ViewMacroMarshallerFactoryImpl(MacroManager macroManager, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder, LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter, com.atlassian.event.api.EventPublisher eventPublisher, XMLOutputFactory xmlOutputFactory, PlaceholderUrlFactory placeholderUrlFactory, ConfluenceMonitoring monitoring, MacroAsyncRenderWhitelist macroAsyncRenderWhiteList, MacroMetadataManager macroMetadataManager, MacroSchemaMigrator macroSchemaMigrator, ViewMacroWrapper viewMacroWrapper, MacroRenderingMonitor macroRenderingMonitor) - Since:
- 5.10
-
-
Method Details
-
newMacroMarshaller
Description copied from interface:ViewMacroMarshallerFactory
Get a new instance of the default view macro Marshaller.- Specified by:
newMacroMarshaller
in interfaceViewMacroMarshallerFactory
- Returns:
- a new instance of a Marshaller suitable for view marshalling of macros
-
newMacroMarshaller
public Marshaller<MacroDefinition> newMacroMarshaller(MacroManager macroManager, Marshaller<MacroDefinition> unknownMacroMarshaller, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder) Description copied from interface:ViewMacroMarshallerFactory
Get a new instance of a macro Marshaller which uses the supplied MacroManager, unknown macro Marshaller and ViewMacroErrorPlaceholder.If any of the parameters are null then the default version will be used in the returned marshaller.
- Specified by:
newMacroMarshaller
in interfaceViewMacroMarshallerFactory
- Parameters:
macroManager
- a custom macro manager to be used by the returned Marshaller- Returns:
- a new MacroDefinition Marshaller using the supplied constituent components.
-
newUnknownMacroMarshaller
- Specified by:
newUnknownMacroMarshaller
in interfaceViewMacroMarshallerFactory
- Returns:
- a new instance of a macro marshaller to be used for marshalling unknown macros.
-