Package fitnesse.wiki

Examples of fitnesse.wiki.WikiPageFactory


    FitNesseVersion version = new FitNesseVersion();

    updateFitNesseProperties(version);

    WikiPageFactory wikiPageFactory = (WikiPageFactory) componentFactory.createComponent(WIKI_PAGE_FACTORY_CLASS, FileSystemPageFactory.class);

    if (versionsController == null) {
      versionsController = (VersionsController) componentFactory.createComponent(VERSIONS_CONTROLLER_CLASS, ZipFileVersionsController.class);
      Integer versionDays = getVersionDays();
      if (versionDays != null) {
        versionsController.setHistoryDepth(versionDays);
      }
    }
    if (recentChanges == null) {
      recentChanges = (RecentChanges) componentFactory.createComponent(RECENT_CHANGES_CLASS, RecentChangesWikiPage.class);
    }

    if (root == null) {
      root = wikiPageFactory.makePage(new File(rootPath, rootDirectoryName), rootDirectoryName, null);
    }

    PluginsLoader pluginsLoader = new PluginsLoader(componentFactory);

    if (logger == null) {
View Full Code Here


  public static WikiPage makeRoot(String name, Properties properties) {
    return makeRoot(name, properties, new MemoryFileSystem());
  }

  public static WikiPage makeRoot(String name, Properties properties, MemoryFileSystem fileSystem) {
    WikiPageFactory factory = new FileSystemPageFactory(fileSystem, new MemoryVersionsController(fileSystem), new SystemVariableSource(properties));
    FileSystemPage page = (FileSystemPage) factory.makePage(new File("."), name, null);
    return page;
  }
View Full Code Here

TOP

Related Classes of fitnesse.wiki.WikiPageFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.