com.atlassian.confluence.content.render.xhtml.view.macro
Interface ViewMacroMarshallerFactory

All Known Implementing Classes:
ViewMacroMarshallerFactoryImpl

public interface ViewMacroMarshallerFactory

A factory specifically for creating Marshaller for MacroDefinitions involved in the view rendering of Links.


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()
           
 

Method Detail

newMacroMarshaller

Marshaller<MacroDefinition> newMacroMarshaller()
Get a new instance of the default view macro Marshaller.

Returns:
a new instance of a Marshaller suitable for view marshalling of macros

newMacroMarshaller

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.

If any of the parameters are null then the default version will be used in the returned marshaller.

Parameters:
macroManager - a custom macro manager to be used by the returned Marshaller
unknownMacroMarshaller -
viewMacroErrorPlaceholder -
Returns:
a new MacroDefinition Marshaller using the supplied constituent components.

newUnknownMacroMarshaller

Marshaller<MacroDefinition> newUnknownMacroMarshaller()
Returns:
a new instance of a macro marshaller to be used for marshalling unknown macros.


Copyright © 2003-2014 Atlassian. All Rights Reserved.