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 java.lang.Object
implements ViewMacroMarshallerFactory


Constructor Summary
ViewMacroMarshallerFactoryImpl(MacroManager macroManager, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder, LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter, com.atlassian.event.api.EventPublisher eventPublisher, javax.xml.stream.XMLOutputFactory xmlOutputFactory, PlaceholderUrlFactory placeholderUrlFactory)
           
 
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

public ViewMacroMarshallerFactoryImpl(MacroManager macroManager,
                                      ViewMacroErrorPlaceholder viewMacroErrorPlaceholder,
                                      LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter,
                                      com.atlassian.event.api.EventPublisher eventPublisher,
                                      javax.xml.stream.XMLOutputFactory xmlOutputFactory,
                                      PlaceholderUrlFactory placeholderUrlFactory)
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-2013 Atlassian. All Rights Reserved.