Interface CodeMacroSourceFactory


  • @Role
    @Unstable
    public interface CodeMacroSourceFactory
    Fetch a content to highlight based on its reference.
    Since:
    15.0RC1, 14.10.2
    Version:
    $Id: f83c778785d0b21806621f7a324b2d539e440f10 $
    • Method Detail

      • getContent

        CodeMacroSource getContent​(org.xwiki.rendering.macro.source.MacroContentSourceReference reference,
                                   org.xwiki.rendering.transformation.MacroTransformationContext context)
                            throws org.xwiki.rendering.macro.MacroExecutionException
        Parameters:
        reference - the reference of the content
        context - the context of the code macro execution
        Returns:
        the content to highlight
        Throws:
        org.xwiki.rendering.macro.MacroExecutionException - when failing to get the content
        Since:
        15.1RC1, 14.10.5