public abstract class AbstractOpenJpaMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected File |
classes
Location where
persistence-enabled classes are located. |
protected List<String> |
compileClasspathElements
List of all class path elements that will be searched for the
persistence-enabled classes and resources expected by
PCEnhancer. |
protected static String |
OPTION_CONNECTION_DRIVER_NAME
the string used for passing information about the connectionDriverName
|
protected static String |
OPTION_CONNECTION_PROPERTIES
the string used for passing information about the connectionProperties
|
protected static String |
OPTION_PROPERTIES
The properties option is used for passing information about the persistence.xml
classpath resource and the default unit
|
protected static String |
OPTION_PROPERTIES_FILE
the properties option is used for passing information about the persistence.xml file location
|
protected org.apache.maven.project.MavenProject |
project
The Maven Project Object
|
Constructor and Description |
---|
AbstractOpenJpaMojo()
default ct
|
Modifier and Type | Method and Description |
---|---|
protected Options |
createOptions()
This function will usually get called by
getOptions() |
protected void |
extendRealmClasspath()
This will prepare the current ClassLoader and add all jars and local
classpaths (e.g.
|
protected List<File> |
findEntityClassFiles()
Locates and returns a list of class files found under specified class
directory.
|
protected List<String> |
getClasspathElements()
This function retrieves the injected classpath elements for the current mojo.
|
protected File |
getEntityClasses()
The File where the class files of the entities to enhance reside
|
protected String[] |
getFilePaths(List<File> files) |
protected abstract Options |
getOptions()
Get the options for the various OpenJPA tools.
|
protected boolean |
skipMojo()
Determine if the mojo execution should get skipped.
|
getLog, getPluginContext, setLog, setPluginContext
protected File classes
persistence-enabled
classes are located.protected static final String OPTION_CONNECTION_DRIVER_NAME
protected static final String OPTION_CONNECTION_PROPERTIES
protected List<String> compileClasspathElements
persistence-enabled
classes and resources expected by
PCEnhancer.protected org.apache.maven.project.MavenProject project
protected static final String OPTION_PROPERTIES_FILE
protected static final String OPTION_PROPERTIES
protected File getEntityClasses()
protected List<String> getClasspathElements()
protected abstract Options getOptions()
protected boolean skipMojo()
Determine if the mojo execution should get skipped.
This is the case if:skip
is true
forceMojoExecution
is false
true
if the mojo execution should be skipped.protected Options createOptions()
getOptions()
protected void extendRealmClasspath() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- on any error inside the mojoprotected List<File> findEntityClassFiles() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if there was an error scanning class file
resources.Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.