Package org.apache.forrest.yer.hierarchy

Examples of org.apache.forrest.yer.hierarchy.EntryFactory


      getLogger().debug("hierachy generator start generate()");

      //START hack that needs to be replaced
      //FIXME: get this through Avalon instead!
      String rootFactory = "org.apache.forrest.yer.impl.fs.FileEntryFactory";
      EntryFactory ef = EntryFactory.newInstance(rootFactory);
      ef.compose(this.manager); // the container should of have done this then
      //END hack that needs to be replaced by something like:
      // EntryFactory ef = this.manager.lookup(EntryFactory.ROLE);

      Entry rootEntry = ef.getRootEntry(this.startLocation);
      //get a reader
      HierarchyReader hr = new HierarchyReader();
      hr.setDepth(this.theDepth);
      // get going
      hr.setContentHandler(this.contentHandler);
View Full Code Here


        e.printStackTrace();
      }
    }

    //get an implementation of a rootEntry
    EntryFactory ef = EntryFactory.newInstance(rootFactory);
    Entry rootEntry = ef.getRootEntry(rootLocation);
    //get a reader
    HierarchyReader hr = new HierarchyReader();
    // get a listener
    ContentHandler serializer = SAXConvenience.getSAXSink(
        new StreamResult(sink));
View Full Code Here

        e.printStackTrace();
      }
    }

    //get an implementation of a rootEntry
    EntryFactory ef = EntryFactory.newInstance(rootFactory);
    Entry rootEntry = ef.getRootEntry(rootLocation);
    //get a reader
    HierarchyReader hr = new HierarchyReader();
    // get a listener
    ContentHandler serializer = SAXConvenience.getSAXSink(
        new StreamResult(sink));
View Full Code Here

      getLogger().debug("hierachy generator start generate()");

      //START hack that needs to be replaced
      //FIXME: get this through Avalon instead!
      String rootFactory = "org.apache.forrest.yer.impl.fs.FileEntryFactory";
      EntryFactory ef = EntryFactory.newInstance(rootFactory);
      ef.compose(this.manager); // the container should of have done this then
      //END hack that needs to be replaced by something like:
      // EntryFactory ef = this.manager.lookup(EntryFactory.ROLE);

      Entry rootEntry = ef.getRootEntry(this.startLocation);
      //get a reader
      HierarchyReader hr = new HierarchyReader();
      hr.setDepth(this.theDepth);
      // get going
      hr.setContentHandler(this.contentHandler);
View Full Code Here

TOP

Related Classes of org.apache.forrest.yer.hierarchy.EntryFactory

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.