hudson.plugins.dry.parser
Class DuplicationParserRegistry

java.lang.Object
  extended by hudson.plugins.dry.parser.DuplicationParserRegistry
All Implemented Interfaces:
AnnotationParser, java.io.Serializable

public class DuplicationParserRegistry
extends java.lang.Object
implements AnnotationParser

Registry for duplication parsers.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
DuplicationParserRegistry()
          Creates a new instance of DuplicationParserRegistry.
 
Method Summary
 java.util.Collection<FileAnnotation> parse(java.io.File file, java.lang.String moduleName)
          Returns the annotations found in the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicationParserRegistry

public DuplicationParserRegistry()
Creates a new instance of DuplicationParserRegistry.

Method Detail

parse

public java.util.Collection<FileAnnotation> parse(java.io.File file,
                                                  java.lang.String moduleName)
                                           throws java.lang.reflect.InvocationTargetException
Returns the annotations found in the specified file.

Specified by:
parse in interface AnnotationParser
Parameters:
file - the file to parse
moduleName - name of the maven module
Returns:
the parsed result (stored in the module instance)
Throws:
java.lang.reflect.InvocationTargetException - if the file could not be parsed (wrap your exception in this exception)


Copyright © 2009. All Rights Reserved.