org.bsc.maven.plugin.processor
Class AbstractAnnotationProcessorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
MainAnnotationProcessorMojo, TestAnnotationProcessorMojo

public abstract class AbstractAnnotationProcessorMojo
extends org.apache.maven.plugin.AbstractMojo

Author:
bsorrentino

Field Summary
protected  org.apache.maven.project.MavenProject project
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractAnnotationProcessorMojo()
           
 
Method Summary
protected abstract  void addCompileSourceRoot(org.apache.maven.project.MavenProject project, java.lang.String dir)
           
 void execute()
           
protected abstract  java.util.Set<java.lang.String> getClasspathElements(java.util.Set<java.lang.String> result)
           
abstract  java.io.File getDefaultOutputDirectory()
           
protected abstract  java.io.File getOutputClassDirectory()
           
protected abstract  java.util.Set<java.io.File> getSourceDirectories(java.util.Set<java.io.File> result)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

@Component
protected org.apache.maven.project.MavenProject project
Constructor Detail

AbstractAnnotationProcessorMojo

public AbstractAnnotationProcessorMojo()
Method Detail

getSourceDirectories

protected abstract java.util.Set<java.io.File> getSourceDirectories(java.util.Set<java.io.File> result)
Returns:
supported source directories

getOutputClassDirectory

protected abstract java.io.File getOutputClassDirectory()
Returns:
output folder

addCompileSourceRoot

protected abstract void addCompileSourceRoot(org.apache.maven.project.MavenProject project,
                                             java.lang.String dir)
Parameters:
project -
dir -

getDefaultOutputDirectory

public abstract java.io.File getDefaultOutputDirectory()
Returns:

getClasspathElements

protected abstract java.util.Set<java.lang.String> getClasspathElements(java.util.Set<java.lang.String> result)

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2009-2013. All Rights Reserved.