org.opensolaris.opengrok.history
Class DirectoryHistoryParser

java.lang.Object
  extended by org.opensolaris.opengrok.history.DirectoryHistoryParser

public class DirectoryHistoryParser
extends java.lang.Object


Constructor Summary
DirectoryHistoryParser()
          Creates a new instance of DirectoryHistoryParser
 
Method Summary
 Annotation annotate(java.io.File file, java.lang.String revision, ExternalRepository repository)
           
 boolean isCacheable()
           
 History parse(java.io.File file, ExternalRepository repository)
          Parse the history log for the given file.
 boolean supportsAnnotation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryHistoryParser

public DirectoryHistoryParser()
Creates a new instance of DirectoryHistoryParser

Method Detail

parse

public History parse(java.io.File file,
                     ExternalRepository repository)
              throws java.lang.Exception
Parse the history log for the given file.

Parameters:
file - the file
repository - the external repository to fetch the history from (could be null if no external repository is used)
Returns:
the history of the file
Throws:
java.lang.Exception

annotate

public Annotation annotate(java.io.File file,
                           java.lang.String revision,
                           ExternalRepository repository)

isCacheable

public boolean isCacheable()

supportsAnnotation

public boolean supportsAnnotation()