public class SunRmiCompiler extends java.lang.Object implements RmiCompiler
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
SunRmiCompiler.ClassLoaderFacade
An interface for dependencies on classloading - enables unit testing.
|
(package private) static class |
SunRmiCompiler.ClassLoaderFacadeImpl
The production implementation of the classloader dependencies.
|
Modifier and Type | Field and Description |
---|---|
private static SunRmiCompiler.ClassLoaderFacade |
classLoaderFacade |
private org.apache.maven.plugin.logging.Log |
logger |
static java.lang.String |
RMIC_CLASSNAME
The name of the class to use for rmi compilation.
|
Constructor and Description |
---|
SunRmiCompiler() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
buildClasspath(java.util.List classpathList) |
void |
execute(AbstractRmiMojo mojo,
RmicConfig rmiConfig,
java.util.List classesToCompile)
Execute the compiler
|
private void |
executeMain(java.lang.Class rmicMainClass,
java.lang.String[] args) |
org.apache.maven.plugin.logging.Log |
getLog()
Returns the defined log.
|
private java.lang.Class |
loadRmicClass() |
private void |
logClasspath(org.apache.maven.plugin.logging.Log logger,
java.net.URL[] urls) |
(package private) static void |
setClassLoaderFacade(SunRmiCompiler.ClassLoaderFacade classLoaderFacade)
Specifies the implementation of the classloader facade to use
|
void |
setLog(org.apache.maven.plugin.logging.Log log)
Defines the logger to use.
|
public static final java.lang.String RMIC_CLASSNAME
private static SunRmiCompiler.ClassLoaderFacade classLoaderFacade
private org.apache.maven.plugin.logging.Log logger
static void setClassLoaderFacade(SunRmiCompiler.ClassLoaderFacade classLoaderFacade)
classLoaderFacade
- a wrapper for class loading.public void execute(AbstractRmiMojo mojo, RmicConfig rmiConfig, java.util.List classesToCompile) throws RmiCompilerException
execute
in interface RmiCompiler
mojo
- rmiConfig
- The config objectclassesToCompile
- The list of classes to rmi compileRmiCompilerException
- if there is a problem during compileprivate java.lang.String buildClasspath(java.util.List classpathList)
public void setLog(org.apache.maven.plugin.logging.Log log)
RmiCompiler
setLog
in interface RmiCompiler
public org.apache.maven.plugin.logging.Log getLog()
RmiCompiler
getLog
in interface RmiCompiler
private java.lang.Class loadRmicClass() throws RmiCompilerException
RmiCompilerException
private void logClasspath(org.apache.maven.plugin.logging.Log logger, java.net.URL[] urls)
private void executeMain(java.lang.Class rmicMainClass, java.lang.String[] args) throws RmiCompilerException
rmicMainClass
- The class to use to run the rmicargs
- Arguments to be passed to rmicRmiCompilerException
- If there is a problem during the compile