org.xwiki.rendering.internal.parser.xwiki10
Class CodeMacroFilter

java.lang.Object
  extended by org.xwiki.rendering.parser.xwiki10.AbstractFilter
      extended by org.xwiki.rendering.internal.parser.xwiki10.CodeMacroFilter
All Implemented Interfaces:
Initializable, Filter

@Component
@Named(value="code")
@Singleton
public class CodeMacroFilter
extends AbstractFilter
implements Initializable

Converts Code Macro.

Since:
1.8M1

Constructor Summary
CodeMacroFilter()
           
 
Method Summary
 String filter(String content, FilterContext filterContext)
           
 void initialize()
          Method called by the Component Manager when the component is created for the first time (i.e.
 
Methods inherited from class org.xwiki.rendering.parser.xwiki10.AbstractFilter
getPriority, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeMacroFilter

public CodeMacroFilter()
Method Detail

initialize

public void initialize()
                throws InitializationException
Description copied from interface: Initializable
Method called by the Component Manager when the component is created for the first time (i.e. when it's looked up for the first time or if the component is specified as being loaded on startup). If the component instantiation strategy is singleton then this method is called only once during the lifecycle of the Component Manager. Otherwise the component is created at each lookup and thus this method is called at each lookup too.

Specified by:
initialize in interface Initializable
Throws:
InitializationException - if an error happens during a component's initialization

filter

public String filter(String content,
                     FilterContext filterContext)
Specified by:
filter in interface Filter