public abstract class AbstractRmiMojo extends org.apache.maven.plugin.AbstractMojo implements RmicConfig
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
AbstractRmiMojo.DependenciesFacade
An interface for dependencies on the file system and related mojo base classes.
|
(package private) static class |
AbstractRmiMojo.DependenciesFacadeImpl
Standard file system and mojo dependencies.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
compilerId
The id of the rmi compiler to use.
|
private AbstractRmiMojo.DependenciesFacade |
dependencies
The interface between ths class and the rest of the world - unit tests replace the default implementation.
|
private static AbstractRmiMojo.DependenciesFacade |
DEPENDENCIES_FACADE
The default implementation of the dependencies.
|
protected java.util.Set |
excludes
A list of exclusions when searching for classes to compile.
|
private boolean |
idl
Create IDL.
|
private boolean |
iiop
Create stubs for IIOP.
|
protected java.util.Set |
includes
A list of inclusions when searching for classes to compile.
|
private boolean |
keep
Do not delete intermediate generated source files.
|
private boolean |
noLocalStubs
Do not create stubs optimized for same process.
|
private boolean |
noValueMethods
Do not generate methods for valuetypes.
|
private boolean |
nowarn
Turn off rmic warnings.
|
private boolean |
poa
Enable poa generation.
|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
private java.util.List |
sources
A
List of Source configurations to compile. |
private int |
staleMillis
Time in milliseconds between automatic recompilations.
|
private static java.lang.String |
STUB_CLASS_PATTERN |
private boolean |
verbose
Enable verbose output.
|
private java.lang.String |
version
The version of the rmi protocol to which the stubs should be compiled.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractRmiMojo()
Creates the abstract class using a production implementation of the dependencies.
|
(package private) |
AbstractRmiMojo(AbstractRmiMojo.DependenciesFacade dependencies)
Creates the abstract class using the specified implementation of the dependencies.
|
Modifier and Type | Method and Description |
---|---|
private org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner |
createScanner(java.util.Set includes,
java.util.Set excludes) |
private void |
doExecute(Source source) |
void |
execute()
Main mojo execution.
|
private static java.lang.String |
fileToClassName(java.lang.String classFileName) |
protected java.util.List |
generateUrlCompileClasspath()
Returns a list of URL objects that represent the classpath elements.
|
abstract java.io.File |
getClassesDirectory()
Get the directory where Remote impl classes are located.
|
private java.lang.String |
getClassName(java.io.File remoteClassFile) |
java.lang.String |
getCompilerId() |
private java.util.Set |
getExcludes(Source source) |
abstract java.io.File |
getOutputDirectory()
Get the directory where rmic generated class files are written.
|
abstract java.util.List |
getProjectClasspathElements()
Get the list of elements to add to the classpath of rmic
|
java.util.List |
getRemoteClasses(Source source)
Search the input directory for classes to compile.
|
java.util.List |
getRmicClasspathElements()
Get the list of elements to add to the classpath of rmic
|
(package private) java.util.List |
getSources()
Get the list of sub-configurations.
|
java.lang.String |
getVersion() |
boolean |
isIdl() |
boolean |
isIiop() |
boolean |
isKeep()
Keep intermediate files
|
boolean |
isNoLocalStubs()
Do not create stubs optimized for same process.
|
boolean |
isNoValueMethods()
Do not create methods for valuetypes.
|
boolean |
isNowarn()
Turn off warnings
|
boolean |
isPoa() |
private boolean |
isRemoteRmiClass(java.lang.Class remoteClass) |
boolean |
isVerbose()
Output messages about compilation
|
private static final java.lang.String STUB_CLASS_PATTERN
private java.util.List sources
List
of Source
configurations to compile.protected java.util.Set includes
protected java.util.Set excludes
protected java.lang.String compilerId
private java.lang.String version
private boolean iiop
private boolean noLocalStubs
private boolean idl
private boolean noValueMethods
private boolean keep
private boolean nowarn
private boolean poa
private boolean verbose
private int staleMillis
protected org.apache.maven.project.MavenProject project
private AbstractRmiMojo.DependenciesFacade dependencies
private static final AbstractRmiMojo.DependenciesFacade DEPENDENCIES_FACADE
protected AbstractRmiMojo()
AbstractRmiMojo(AbstractRmiMojo.DependenciesFacade dependencies)
dependencies
- the implementation of the dependencies to use.java.util.List getSources()
public abstract java.util.List getProjectClasspathElements()
public abstract java.io.File getOutputDirectory()
public abstract java.io.File getClassesDirectory()
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
- if there is a problem executing the mojo.private void doExecute(Source source) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public java.util.List getRmicClasspathElements()
public java.util.List getRemoteClasses(Source source)
source
- private org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner createScanner(java.util.Set includes, java.util.Set excludes)
private java.lang.String getClassName(java.io.File remoteClassFile)
private java.util.Set getExcludes(Source source)
private static java.lang.String fileToClassName(java.lang.String classFileName)
private boolean isRemoteRmiClass(java.lang.Class remoteClass)
protected java.util.List generateUrlCompileClasspath() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public java.lang.String getCompilerId()
public boolean isIiop()
isIiop
in interface RmicConfig
public boolean isPoa()
isPoa
in interface RmicConfig
public boolean isIdl()
isIdl
in interface RmicConfig
public boolean isKeep()
RmicConfig
isKeep
in interface RmicConfig
public java.lang.String getVersion()
getVersion
in interface RmicConfig
public boolean isNowarn()
RmicConfig
isNowarn
in interface RmicConfig
public boolean isVerbose()
RmicConfig
isVerbose
in interface RmicConfig
public boolean isNoLocalStubs()
RmicConfig
isNoLocalStubs
in interface RmicConfig
public boolean isNoValueMethods()
RmicConfig
isNoValueMethods
in interface RmicConfig