Package org.nuiton.config.plugin
Class GenerateMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.nuiton.plugin.AbstractPlugin
-
- org.nuiton.config.plugin.GenerateMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,ApplicationConfigTransformerConfig
,org.nuiton.plugin.Plugin
@Mojo(name="generate", defaultPhase=GENERATE_SOURCES, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class GenerateMojo extends org.nuiton.plugin.AbstractPlugin implements ApplicationConfigTransformerConfig
Generate application config java files from the option definition class.Created on 28/08/16.
- Since:
- 3.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Constructor Summary
Constructors Constructor Description GenerateMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doAction()
String
getActionsClassName()
String
getConfigClassName()
ConfigModel
getConfigModel()
String
getConfigProviderClassName()
String
getModelName()
String
getOptionsClassName()
String
getPackageName()
org.apache.maven.project.MavenProject
getProject()
protected void
init()
boolean
isGeneratePropertyChangeSupport()
boolean
isGenerateProvider()
boolean
isUseNuitonI18n()
boolean
isVerbose()
void
setProject(org.apache.maven.project.MavenProject project)
void
setVerbose(boolean verbose)
-
Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkEncoding, checkPackaging, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
doAction
protected void doAction() throws Exception
- Specified by:
doAction
in classorg.nuiton.plugin.AbstractPlugin
- Throws:
Exception
-
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interfaceApplicationConfigTransformerConfig
-
getModelName
public String getModelName()
- Specified by:
getModelName
in interfaceApplicationConfigTransformerConfig
-
getOptionsClassName
public String getOptionsClassName()
- Specified by:
getOptionsClassName
in interfaceApplicationConfigTransformerConfig
-
getActionsClassName
public String getActionsClassName()
- Specified by:
getActionsClassName
in interfaceApplicationConfigTransformerConfig
-
isGenerateProvider
public boolean isGenerateProvider()
- Specified by:
isGenerateProvider
in interfaceApplicationConfigTransformerConfig
-
isGeneratePropertyChangeSupport
public boolean isGeneratePropertyChangeSupport()
- Specified by:
isGeneratePropertyChangeSupport
in interfaceApplicationConfigTransformerConfig
-
getConfigProviderClassName
public String getConfigProviderClassName()
- Specified by:
getConfigProviderClassName
in interfaceApplicationConfigTransformerConfig
-
getConfigClassName
public String getConfigClassName()
- Specified by:
getConfigClassName
in interfaceApplicationConfigTransformerConfig
-
getConfigModel
public ConfigModel getConfigModel()
- Specified by:
getConfigModel
in interfaceApplicationConfigTransformerConfig
-
isUseNuitonI18n
public boolean isUseNuitonI18n()
- Specified by:
isUseNuitonI18n
in interfaceApplicationConfigTransformerConfig
-
isVerbose
public boolean isVerbose()
-
setVerbose
public void setVerbose(boolean verbose)
-
getProject
public org.apache.maven.project.MavenProject getProject()
-
setProject
public void setProject(org.apache.maven.project.MavenProject project)
-
-