org.xwiki.rendering.internal.parser.xwiki10
Class CodeMacroFilter
java.lang.Object
org.xwiki.rendering.parser.xwiki10.AbstractFilter
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeMacroFilter
public CodeMacroFilter()
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