org.plasma.mojo
Class ClassRealmMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.plasma.mojo.ClassRealmMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DDLMojo, DSLMojo, QueryMojo, RDBMojo, SDOMojo, XSDMojo

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

Abstract mojo which has an injected Plexus class realm such that subclass mojo's can add resource and other URL's etc.. to the class world as needed using the injected additionalClasspathElements List parameter, as well as system properties using the {@link ClassRealmMojo.systemProperties systemProperties) Properties collection parameter.

Since:
1.1.3
Author:
Scott Cinnamond

Field Summary
protected  java.util.List<java.lang.String> additionalClasspathElements
           
protected  java.lang.Object classRealm
           
protected  org.apache.maven.project.MavenProject project
           
protected  java.util.Properties systemProperties
          Extra System properties injected as a property collection.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ClassRealmMojo()
           
 
Method Summary
protected  void addURL(java.net.URL url)
           
 void execute()
           
 org.apache.maven.project.MavenProject getProject()
           
 java.util.Properties getSystemProperties()
           
 
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

protected org.apache.maven.project.MavenProject project

classRealm

protected java.lang.Object classRealm

additionalClasspathElements

protected java.util.List<java.lang.String> additionalClasspathElements

systemProperties

protected java.util.Properties systemProperties
Extra System properties injected as a property collection.

Constructor Detail

ClassRealmMojo

public ClassRealmMojo()
Method Detail

getProject

public org.apache.maven.project.MavenProject getProject()

getSystemProperties

public java.util.Properties getSystemProperties()

addURL

protected void addURL(java.net.URL url)

execute

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


Copyright © 2013. All Rights Reserved.