public String loadWikiPage(WikiPageFactory factory) throws ClassNotFoundException { StringBuffer buffer = new StringBuffer(); String rootPageClassName = loadedProperties.getProperty(WIKI_PAGE_CLASS); if (rootPageClassName != null) { factory.setWikiPageClass(Class.forName(rootPageClassName)); buffer.append("\tCustom wiki page plugin loaded: ").append(rootPageClassName).append(endl); } return buffer.toString(); }
public static void registerWikiPage(WikiPageFactory factory) { factory.setWikiPageClass(InMemoryPage.class); }