| 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
| 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
|
private
Log |
log |
|
|
private
Map |
pluginContext |
|
|
From interface
org.apache.maven.plugin.Mojo
|
public
static
final
String |
ROLE |
|
|
| Public Methods |
|
void
|
execute()
Iterate the list of packages.
|
|
[Expand]
Inherited Methods |
From class
org.apache.maven.plugin.AbstractMojo
|
Log
|
getLog()
|
|
Map
|
getPluginContext()
|
|
void
|
setLog(Log arg0)
|
|
void
|
setPluginContext(Map arg0)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
org.apache.maven.plugin.ContextEnabled
|
abstract
Map
|
getPluginContext()
|
|
abstract
void
|
setPluginContext(Map arg0)
|
|
From interface
org.apache.maven.plugin.Mojo
|
abstract
void
|
execute()
|
|
abstract
Log
|
getLog()
|
|
abstract
void
|
setLog(Log arg0)
|
|
Constants
private
static
final
String
CLASS_DEFINITION_LINE_PATTERN
Constant Value:
"public class .+ \{"
private
static
final
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.
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.