|
|||||||||
| 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.InitState, 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 String[] |
beanInfoSearchPath
extra path to be added in Introspector.setBeanInfoSearchPath(String[]). |
protected ClassLoader |
cl
|
protected String |
compilerFQN
Le compilateur à utiliser (par défaut celui de Swing) |
protected String |
defaultDecoratorFQN
the FQN of the ui to use for error notification. |
protected String |
defaultErrorUIFQN
the FQN of the ui to use for error notification. |
protected String[] |
excludes
pour filter les fichiers a ne pas traiter |
protected String |
extraImportList
list of fqn of class toimport for all generated jaxx files |
protected String[] |
files
detected jaxx files in init() method |
protected 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 String[] |
includes
pour filter les fichiers a traiter |
protected String |
jaxxContextFQN
the name of implementation of JAXXContextto be used on
JAXXObject. |
protected boolean |
optimize
pour optimizer le code compile ou genere ? |
protected 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 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 String |
validatorFQN
Le compilateur à utiliser (par défaut celui de Swing) |
| Fields inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
|---|
generateHelp |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
GenerateMojo()
|
|
| Method Summary | |
|---|---|
protected boolean |
checkSkip()
|
void |
doAction()
|
protected void |
fixCompileSourceRoots()
|
ClassLoader |
getClassLoader()
|
Class<? extends JAXXCompiler> |
getCompilerClass()
|
Class<? extends CompiledObjectDecorator> |
getDefaultDecoratorClass()
|
Class<?> |
getDefaultErrorUI()
|
JAXXEngine |
getEngine()
|
String[] |
getExtraImports()
|
String |
getHelpBrokerFQN()
|
Class<? extends JAXXContext> |
getJaxxContextClass()
|
boolean |
getOptimize()
|
File |
getTargetDirectory()
|
Class<?> |
getValidatorClass()
|
void |
init()
|
boolean |
isAddLogger()
|
boolean |
isGenerateHelp()
|
boolean |
isI18nable()
|
boolean |
isOptimize()
|
boolean |
isProfile()
|
boolean |
isResetAfterCompile()
|
boolean |
isUseUIManagerForIcon()
|
protected void |
report(JAXXEngine engine)
|
void |
setTargetDirectory(File targetDirectory)
|
String |
toString()
|
| Methods inherited from class org.nuiton.jaxx.plugin.AbstractJaxxMojo |
|---|
checkPackaging, getEncoding, getLastModified, getProject, isForce, isVerbose, setEncoding, setForce, setProject, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, 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 File src
protected File outJava
protected String[] includes
protected String[] excludes
protected String compilerFQN
protected String validatorFQN
protected String jaxxContextFQN
JAXXContextto be used on
JAXXObject.
Must not be abstract.
protected String defaultErrorUIFQN
protected 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 String[] beanInfoSearchPath
Introspector.setBeanInfoSearchPath(String[]).
add beanInfoSearchPath to be registred by
BeanInfoUtil.addJaxxBeanInfoPath(String...)
and then will be use by DefaultInitializer.initialize().
This permit to use real beanInfo of imported graphic libraries.
protected String extraImportList
protected boolean useUIManagerForIcon
protected boolean profile
protected boolean showBinding
protected String helpBrokerFQN
JAXXHelpBroker.
protected String[] files
init() method
protected org.nuiton.io.MirroredFileUpdater updater
AbstractJaxxMojo.verbose flag is on, will ne be used
protected ClassLoader cl
| Constructor Detail |
|---|
public GenerateMojo()
| Method Detail |
|---|
public void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginExceptionprotected boolean checkSkip()
checkSkip in class org.nuiton.plugin.AbstractPlugin
public void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionpublic File getTargetDirectory()
getTargetDirectory in interface CompilerConfigurationgetTargetDirectory in class AbstractJaxxMojopublic void setTargetDirectory(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 Class<? extends JAXXContext> getJaxxContextClass()
getJaxxContextClass in interface CompilerConfigurationpublic String[] getExtraImports()
getExtraImports in interface CompilerConfigurationpublic boolean isResetAfterCompile()
isResetAfterCompile in interface CompilerConfigurationpublic boolean isOptimize()
isOptimize in interface CompilerConfigurationpublic Class<?> getDefaultErrorUI()
getDefaultErrorUI in interface CompilerConfigurationpublic ClassLoader getClassLoader()
getClassLoader in interface CompilerConfigurationpublic Class<? extends JAXXCompiler> getCompilerClass()
getCompilerClass in interface CompilerConfigurationpublic Class<? extends CompiledObjectDecorator> getDefaultDecoratorClass()
getDefaultDecoratorClass in interface CompilerConfigurationpublic boolean isProfile()
isProfile in interface CompilerConfigurationpublic boolean isGenerateHelp()
isGenerateHelp in interface CompilerConfigurationpublic String getHelpBrokerFQN()
getHelpBrokerFQN in interface CompilerConfigurationpublic Class<?> getValidatorClass()
getValidatorClass in interface CompilerConfigurationpublic JAXXEngine getEngine()
public String toString()
toString in class Objectprotected void fixCompileSourceRoots()
protected void report(JAXXEngine engine)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||