public abstract class StreamableMacroAdapter extends Object implements StreamableMacro
StreamableMacro
interface that provides a default implementation of the redundant
execute method. Also provides a static helper method for macros that are unable to extend the adapter due
to some other class constraints.Macro.BodyType, Macro.OutputType
Constructor and Description |
---|
StreamableMacroAdapter() |
Modifier and Type | Method and Description |
---|---|
String |
execute(Map<String,String> parameters,
String body,
ConversionContext context) |
static String |
executeFromStream(StreamableMacro macro,
Map<String,String> parameters,
String body,
ConversionContext context)
Helper method to provide a default execute method for a StreamableMacro that can not inherit from
this adapter class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeToStream
getBodyType, getOutputType
public static String executeFromStream(StreamableMacro macro, Map<String,String> parameters, String body, ConversionContext context) throws MacroExecutionException
macro
- the macro to executeparameters
- the macro parametersbody
- the body of the macrocontext
- the execution context of the rendering pipelineMacroExecutionException
- some error occurred executing the macropublic String execute(Map<String,String> parameters, String body, ConversionContext context) throws MacroExecutionException
execute
in interface Macro
MacroExecutionException
Copyright © 2003–2015 Atlassian. All rights reserved.