|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.jaxx.plugin.AbstractJaxxMojo
org.nuiton.jaxx.plugin.GenerateMojo
public class GenerateMojo
Generates some java code from jaxx files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected boolean |
addCompileClassPath
flag to include in compiler classpath the compile class-path (can only be used in a test phase). |
protected boolean |
addLogger
flag to add logger to each generated jaxx file. |
protected boolean |
addProjectClassPath
flag to include in compiler classpath the project compile classpath. |
protected boolean |
addResourcesToClassPath
flag to include in compiler classpath the java resources directories (src and outJava). |
protected boolean |
addSourcesToClassPath
flag to include in compiler classpath the java sources directories (src and outJava). |
protected java.lang.String[] |
beanInfoSearchPath
extra path to be added in java.beans.Introspector#setBeanInfoSearchPath(java.lang.String[]). |
protected java.lang.ClassLoader |
cl
|
protected java.lang.String |
compilerFQN
Le compilateur à utiliser (par défaut celui de Swing) |
protected java.lang.String |
defaultDecoratorFQN
the FQN of the ui to use for error notification. |
protected java.lang.String |
defaultErrorUIFQN
the FQN of the ui to use for error notification. |
protected java.lang.String[] |
excludes
pour filter les fichiers a ne pas traiter |
protected java.lang.String |
extraImportList
list of fqn of class toimport for all generated jaxx files |
protected java.lang.String[] |
files
detected jaxx files in init() method |
protected java.lang.String |
helpBrokerFQN
the FQN of help broker By default, use the JAXX implementation JAXXHelpBroker. |
protected boolean |
i18nable
to make compiler i18nable, says add the I18n._(String, Object...) method
invocation on I18nHelper.I18N_ATTRIBUTES attributes. |
protected java.lang.String[] |
includes
pour filter les fichiers a traiter |
protected java.lang.String |
jaxxContextFQN
the name of implementation of JAXXContext
to be used on JAXXObject. |
protected boolean |
optimize
pour optimizer le code compile ou genere ? |
protected java.io.File |
outJava
Repertoire de destination des fichiers java a generer. |
protected boolean |
profile
flag to activate profile mode. |
protected boolean |
resetAfterCompile
flag to keep compilers after the generate operation (usefull for tests. |
protected boolean |
showBinding
To show detected bindings. |
protected java.io.File |
src
Repertoire sources des fichiers jaxx a generer. |
protected boolean |
testPhase
A flag to mark themojo to be used in a test phase. |
protected org.nuiton.io.MirroredFileUpdater |
updater
file updater used to detect jaxx files. |
protected boolean |
useUIManagerForIcon
a flag to use UIManager to retreave icons. |
protected java.lang.String |
validatorFQN
Le compilateur à utiliser (par défaut celui de Swing) |
| Fields inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
|---|
generateHelp |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
GenerateMojo()
|
|
| Method Summary | |
|---|---|
void |
doAction()
|
protected void |
fixCompileSourceRoots()
|
java.lang.ClassLoader |
getClassLoader()
|
java.lang.Class<? extends JAXXCompiler> |
getCompilerClass()
|
java.lang.Class<? extends CompiledObjectDecorator> |
getDefaultDecoratorClass()
|
java.lang.Class<?> |
getDefaultErrorUI()
|
JAXXEngine |
getEngine()
|
java.lang.String[] |
getExtraImports()
|
java.lang.String |
getHelpBrokerFQN()
|
java.lang.Class<? extends JAXXContext> |
getJaxxContextClass()
|
boolean |
getOptimize()
|
java.io.File |
getTargetDirectory()
|
java.lang.Class<?> |
getValidatorClass()
|
boolean |
init()
|
boolean |
isAddLogger()
|
boolean |
isGenerateHelp()
|
boolean |
isI18nable()
|
boolean |
isOptimize()
|
boolean |
isProfile()
|
boolean |
isResetAfterCompile()
|
boolean |
isUseUIManagerForIcon()
|
protected void |
report(JAXXEngine engine)
|
void |
setTargetDirectory(java.io.File targetDirectory)
|
java.lang.String |
toString()
|
| Methods inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
|---|
addResourceDir, addResourceDir, addTestResourceDir, checkPackaging, createDirectoryIfNecessary, getEncoding, getLastModified, getProject, isForce, isVerbose, setEncoding, setForce, setProject, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, checkResource, checkRunOnceDone, copyFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, writeFile |
| 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, wait, wait, wait |
| Methods inherited from interface jaxx.compiler.CompilerConfiguration |
|---|
getEncoding, isVerbose |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected java.io.File src
protected java.io.File outJava
protected java.lang.String[] includes
protected java.lang.String[] excludes
protected java.lang.String compilerFQN
protected java.lang.String validatorFQN
protected java.lang.String jaxxContextFQN
JAXXContext
to be used on JAXXObject.
Must not be abstract.
protected java.lang.String defaultErrorUIFQN
protected java.lang.String defaultDecoratorFQN
CompiledObjectDecoratorprotected boolean addSourcesToClassPath
protected boolean addResourcesToClassPath
protected boolean addCompileClassPath
protected boolean addProjectClassPath
protected boolean testPhase
protected boolean i18nable
I18n._(String, Object...) method
invocation on I18nHelper.I18N_ATTRIBUTES attributes.
I18nHelperprotected boolean optimize
protected boolean addLogger
protected boolean resetAfterCompile
protected java.lang.String[] beanInfoSearchPath
java.beans.Introspector#setBeanInfoSearchPath(java.lang.String[]).
add beanInfoSearchPath to be registred by BeanInfoUtil.addJaxxBeanInfoPath(java.lang.String...)
and then will be use by DefaultInitializer.
This permit to use real beanInfo of imported graphic libraries.
protected java.lang.String extraImportList
protected boolean useUIManagerForIcon
protected boolean profile
protected boolean showBinding
protected java.lang.String helpBrokerFQN
JAXXHelpBroker.
protected java.lang.String[] files
init() method
protected org.nuiton.io.MirroredFileUpdater updater
AbstractJaxxMojo.verbose flag is on, will ne be used
protected java.lang.ClassLoader cl
| Constructor Detail |
|---|
public GenerateMojo()
| Method Detail |
|---|
public boolean init()
throws java.lang.Exception
init in class org.nuiton.plugin.AbstractPluginjava.lang.Exception
public void doAction()
throws java.lang.Exception
doAction in class org.nuiton.plugin.AbstractPluginjava.lang.Exceptionpublic java.io.File getTargetDirectory()
getTargetDirectory in interface CompilerConfigurationgetTargetDirectory in class AbstractJaxxMojopublic void setTargetDirectory(java.io.File targetDirectory)
setTargetDirectory in class AbstractJaxxMojopublic boolean getOptimize()
getOptimize in interface CompilerConfigurationpublic boolean isI18nable()
isI18nable in interface CompilerConfigurationpublic boolean isUseUIManagerForIcon()
isUseUIManagerForIcon in interface CompilerConfigurationpublic boolean isAddLogger()
isAddLogger in interface CompilerConfigurationpublic java.lang.Class<? extends JAXXContext> getJaxxContextClass()
getJaxxContextClass in interface CompilerConfigurationpublic java.lang.String[] getExtraImports()
getExtraImports in interface CompilerConfigurationpublic boolean isResetAfterCompile()
isResetAfterCompile in interface CompilerConfigurationpublic boolean isOptimize()
isOptimize in interface CompilerConfigurationpublic java.lang.Class<?> getDefaultErrorUI()
getDefaultErrorUI in interface CompilerConfigurationpublic java.lang.ClassLoader getClassLoader()
getClassLoader in interface CompilerConfigurationpublic java.lang.Class<? extends JAXXCompiler> getCompilerClass()
getCompilerClass in interface CompilerConfigurationpublic java.lang.Class<? extends CompiledObjectDecorator> getDefaultDecoratorClass()
getDefaultDecoratorClass in interface CompilerConfigurationpublic boolean isProfile()
isProfile in interface CompilerConfigurationpublic boolean isGenerateHelp()
isGenerateHelp in interface CompilerConfigurationpublic java.lang.String getHelpBrokerFQN()
getHelpBrokerFQN in interface CompilerConfigurationpublic java.lang.Class<?> getValidatorClass()
getValidatorClass in interface CompilerConfigurationpublic JAXXEngine getEngine()
public java.lang.String toString()
toString in class java.lang.Objectprotected void fixCompileSourceRoots()
protected void report(JAXXEngine engine)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||