コード例 #1
0
 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();
 }
コード例 #2
0
 public static void registerWikiPage(WikiPageFactory factory) {
   factory.setWikiPageClass(InMemoryPage.class);
 }