Class ViewMacroMarshallerFactoryImpl
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshallerFactoryImpl
-
- All Implemented Interfaces:
ViewMacroMarshallerFactory
public class ViewMacroMarshallerFactoryImpl extends Object implements ViewMacroMarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Marshaller<MacroDefinition>
newMacroMarshaller()
Get a new instance of the default view macro Marshaller.Marshaller<MacroDefinition>
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.Marshaller<MacroDefinition>
newUnknownMacroMarshaller()
-
-
-
Constructor Detail
-
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 Detail
-
newMacroMarshaller
public Marshaller<MacroDefinition> 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
public Marshaller<MacroDefinition> newUnknownMacroMarshaller()
- Specified by:
newUnknownMacroMarshaller
in interfaceViewMacroMarshallerFactory
- Returns:
- a new instance of a macro marshaller to be used for marshalling unknown macros.
-
-