org.apache.maven.tools.plugin.annotations.scanner
Class DefaultMojoAnnotationsScanner
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
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
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 |
DefaultMojoAnnotationsScanner
public DefaultMojoAnnotationsScanner()
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.