org.apache.maven.tools.plugin.annotations.scanner
Class DefaultMojoAnnotationsScanner

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner
All Implemented Interfaces:
MojoAnnotationsScanner, org.codehaus.plexus.logging.LogEnabled

@Component(role=MojoAnnotationsScanner.class)
public class DefaultMojoAnnotationsScanner
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MojoAnnotationsScanner

Since:
3.0
Author:
Olivier Lamy

Field Summary
 
Fields inherited from interface org.apache.maven.tools.plugin.annotations.scanner.MojoAnnotationsScanner
CLASS_LEVEL_ANNOTATIONS, FIELD_LEVEL_ANNOTATIONS, ROLE
 
Constructor Summary
DefaultMojoAnnotationsScanner()
           
 
Method Summary
protected  void analyzeVisitors(MojoClassVisitor mojoClassVisitor)
           
 Map<String,MojoAnnotatedClass> scan(MojoAnnotationsScannerRequest request)
           
protected  Map<String,MojoAnnotatedClass> scanDirectory(File classDirectory, List<String> includePatterns, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo)
           
protected  Map<String,MojoAnnotatedClass> scanFile(File archiveFile, List<String> includePatterns, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMojoAnnotationsScanner

public DefaultMojoAnnotationsScanner()
Method Detail

scan

public Map<String,MojoAnnotatedClass> scan(MojoAnnotationsScannerRequest request)
                                    throws ExtractionException
Specified by:
scan in interface MojoAnnotationsScanner
Throws:
ExtractionException

scanFile

protected Map<String,MojoAnnotatedClass> scanFile(File archiveFile,
                                                  List<String> includePatterns,
                                                  org.apache.maven.artifact.Artifact artifact,
                                                  boolean excludeMojo)
                                           throws IOException,
                                                  ExtractionException
Parameters:
archiveFile -
includePatterns -
artifact -
excludeMojo - for dependencies we exclude Mojo annotations found
Returns:
Throws:
IOException
ExtractionException

scanDirectory

protected Map<String,MojoAnnotatedClass> scanDirectory(File classDirectory,
                                                       List<String> includePatterns,
                                                       org.apache.maven.artifact.Artifact artifact,
                                                       boolean excludeMojo)
                                                throws IOException,
                                                       ExtractionException
Parameters:
classDirectory -
includePatterns -
artifact -
excludeMojo - for dependencies we exclude Mojo annotations found
Returns:
Throws:
IOException
ExtractionException

analyzeVisitors

protected void analyzeVisitors(MojoClassVisitor mojoClassVisitor)
                        throws ExtractionException
Throws:
ExtractionException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.