com.atlassian.confluence.content.render.xhtml.view.macro
Class ViewMacroMarshallerFactoryImpl

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshallerFactoryImpl
All Implemented Interfaces:
ViewMacroMarshallerFactory

public class ViewMacroMarshallerFactoryImpl
extends Object
implements ViewMacroMarshallerFactory


Constructor Summary
ViewMacroMarshallerFactoryImpl(MacroManager macroManager, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder, LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter, com.atlassian.event.api.EventPublisher eventPublisher, XMLOutputFactory xmlOutputFactory, PlaceholderUrlFactory placeholderUrlFactory, ConfluenceMonitoring monitoring)
          Deprecated. Since 5.6 Use ViewMacroMarshallerFactoryImpl(com.atlassian.confluence.macro.xhtml.MacroManager, ViewMacroErrorPlaceholder, com.atlassian.confluence.content.render.xhtml.compatibility.LegacyV2RendererContextInitialiser, com.atlassian.event.api.EventPublisher, javax.xml.stream.XMLOutputFactory, com.atlassian.confluence.content.render.xhtml.editor.macro.PlaceholderUrlFactory, com.atlassian.confluence.util.profiling.ConfluenceMonitoring, org.springframework.core.io.Resource)
ViewMacroMarshallerFactoryImpl(MacroManager macroManager, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder, LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter, com.atlassian.event.api.EventPublisher eventPublisher, XMLOutputFactory xmlOutputFactory, PlaceholderUrlFactory placeholderUrlFactory, ConfluenceMonitoring monitoring, org.springframework.core.io.Resource macroAsyncRenderWhiteListLocation)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewMacroMarshallerFactoryImpl

@Deprecated
public ViewMacroMarshallerFactoryImpl(MacroManager macroManager,
                                                 ViewMacroErrorPlaceholder viewMacroErrorPlaceholder,
                                                 LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter,
                                                 com.atlassian.event.api.EventPublisher eventPublisher,
                                                 XMLOutputFactory xmlOutputFactory,
                                                 PlaceholderUrlFactory placeholderUrlFactory,
                                                 ConfluenceMonitoring monitoring)
Deprecated. Since 5.6 Use ViewMacroMarshallerFactoryImpl(com.atlassian.confluence.macro.xhtml.MacroManager, ViewMacroErrorPlaceholder, com.atlassian.confluence.content.render.xhtml.compatibility.LegacyV2RendererContextInitialiser, com.atlassian.event.api.EventPublisher, javax.xml.stream.XMLOutputFactory, com.atlassian.confluence.content.render.xhtml.editor.macro.PlaceholderUrlFactory, com.atlassian.confluence.util.profiling.ConfluenceMonitoring, org.springframework.core.io.Resource)


ViewMacroMarshallerFactoryImpl

public ViewMacroMarshallerFactoryImpl(MacroManager macroManager,
                                      ViewMacroErrorPlaceholder viewMacroErrorPlaceholder,
                                      LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter,
                                      com.atlassian.event.api.EventPublisher eventPublisher,
                                      XMLOutputFactory xmlOutputFactory,
                                      PlaceholderUrlFactory placeholderUrlFactory,
                                      ConfluenceMonitoring monitoring,
                                      org.springframework.core.io.Resource macroAsyncRenderWhiteListLocation)
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 interface ViewMacroMarshallerFactory
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 interface ViewMacroMarshallerFactory
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 interface ViewMacroMarshallerFactory
Returns:
a new instance of a macro marshaller to be used for marshalling unknown macros.


Copyright © 2003–2015 Atlassian. All rights reserved.