@Component(role=MojoAnnotationsScanner.class) public class DefaultMojoAnnotationsScanner extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoAnnotationsScanner
CLASS_LEVEL_ANNOTATIONS, FIELD_LEVEL_ANNOTATIONS, ROLE
Constructor and Description |
---|
DefaultMojoAnnotationsScanner() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyzeVisitors(MojoClassVisitor mojoClassVisitor) |
protected void |
populateAnnotationContent(Object content,
MojoAnnotationVisitor mojoAnnotationVisitor) |
protected void |
scan(Map<String,MojoAnnotatedClass> mojoAnnotatedClasses,
File source,
List<String> includePatterns,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
Map<String,MojoAnnotatedClass> |
scan(MojoAnnotationsScannerRequest request)
Scan classes for mojo annotations.
|
protected Map<String,MojoAnnotatedClass> |
scanArchive(File archiveFile,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
protected Map<String,MojoAnnotatedClass> |
scanDirectory(File classDirectory,
List<String> includePatterns,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
public DefaultMojoAnnotationsScanner()
public Map<String,MojoAnnotatedClass> scan(MojoAnnotationsScannerRequest request) throws ExtractionException
MojoAnnotationsScanner
scan
in interface MojoAnnotationsScanner
ExtractionException
protected void scan(Map<String,MojoAnnotatedClass> mojoAnnotatedClasses, File source, List<String> includePatterns, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws IOException, ExtractionException
IOException
ExtractionException
protected Map<String,MojoAnnotatedClass> scanArchive(File archiveFile, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws IOException, ExtractionException
archiveFile
- artifact
- excludeMojo
- for dependencies, we exclude Mojo annotations foundIOException
ExtractionException
protected Map<String,MojoAnnotatedClass> scanDirectory(File classDirectory, List<String> includePatterns, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws IOException, ExtractionException
classDirectory
- includePatterns
- artifact
- excludeMojo
- for dependencies, we exclude Mojo annotations foundIOException
ExtractionException
protected void populateAnnotationContent(Object content, MojoAnnotationVisitor mojoAnnotationVisitor) throws org.codehaus.plexus.util.reflection.ReflectorException
org.codehaus.plexus.util.reflection.ReflectorException
protected void analyzeVisitors(MojoClassVisitor mojoClassVisitor) throws ExtractionException
ExtractionException
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.