com.xpn.xwiki.render.macro
Class MacroLoader

java.lang.Object
  extended by org.radeox.macro.PluginLoader
      extended by org.radeox.macro.MacroLoader
          extended by com.xpn.xwiki.render.macro.MacroLoader

public class MacroLoader
extends org.radeox.macro.MacroLoader

This class has been copied from Radeox. The reason is because the class returned getLoadClass() is used to load the service providers. We are passing our own XWikiMacro class so that the META-INF/com.xpn.xwiki.render.macro.XWikiMacro file is used to load the Macros instead of the default macro list provided in the Radeox JAR. Since we need to pass this MacroLoader class to the MacroRepository class we have also copied the MacroRepository class.


Field Summary
 
Fields inherited from class org.radeox.macro.PluginLoader
repository
 
Constructor Summary
MacroLoader()
           
 
Method Summary
 Class getLoadClass()
           
 
Methods inherited from class org.radeox.macro.MacroLoader
add
 
Methods inherited from class org.radeox.macro.PluginLoader
getPlugins, loadPlugins, loadPlugins, setRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroLoader

public MacroLoader()
Method Detail

getLoadClass

public Class getLoadClass()
Overrides:
getLoadClass in class org.radeox.macro.MacroLoader


Copyright © 2004–2014 XWiki. All rights reserved.