public class

ClassExtenderMojo

extends AbstractMojo
java.lang.Object
   ↳ org.apache.maven.plugin.AbstractMojo
     ↳ org.mule.plugin.ClassExtenderMojo

Class Overview

The class will iterate go to the base directory defined. Ones there it will iterate through the listed packages. Each class found there will be change to exted the defined class.

Summary

Constants
String CLASS_DEFINITION_LINE_PATTERN
String FILE_EXT_MARK
Fields
private static final String BASE_DIR
private String baseDir Define the base directory location for the classes to be extended
private String classToExtend The binary name of the class we should extend of.
private List<String> packagesToExtend The List of package we should process.
[Expand]
Inherited Fields
From class org.apache.maven.plugin.AbstractMojo
From interface org.apache.maven.plugin.Mojo
Public Constructors
ClassExtenderMojo()
ClassExtenderMojo(String baseDir, List<String> packagesToExtend, String classToExtend)
Public Methods
void execute()
Iterate the list of packages.
[Expand]
Inherited Methods
From class org.apache.maven.plugin.AbstractMojo
From class java.lang.Object
From interface org.apache.maven.plugin.ContextEnabled
From interface org.apache.maven.plugin.Mojo

Constants

private static final String CLASS_DEFINITION_LINE_PATTERN

Constant Value: "public class .+ \{"

private static final String FILE_EXT_MARK

Constant Value: ".ext"

Fields

private static final String BASE_DIR

private String baseDir

Define the base directory location for the classes to be extended

private String classToExtend

The binary name of the class we should extend of.

private List<String> packagesToExtend

The List of package we should process.

Public Constructors

public ClassExtenderMojo ()

public ClassExtenderMojo (String baseDir, List<String> packagesToExtend, String classToExtend)

Parameters
baseDir
packagesToExtend
classToExtend

Public Methods

public void execute ()

Iterate the list of packages. For each class in them make it extends the defined class.

Throws
MojoExecutionException