public abstract class AbstractAvroMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
createOptionalGetters
The createOptionalGetters parameter enables generating the getOptional...
|
protected boolean |
createSetters
Determines whether or not to create setters for the fields of the record.
|
protected String[] |
customConversions
A set of fully qualified class names of custom
Conversion implementations to add to the compiler. |
protected String[] |
customLogicalTypeFactories
A set of fully qualified class names of custom
LogicalTypes.LogicalTypeFactory implementations to
add to the compiler. |
protected boolean |
enableDecimalLogicalType
Determines whether or not to use Java classes for decimal types
|
protected String[] |
excludes
A set of Ant-like exclusion patterns used to prevent certain files from being
processed.
|
protected boolean |
gettersReturnOptional
The gettersReturnOptional parameter enables generating get...
|
protected String[] |
imports
A list of files or directories that should be compiled first thus making them
importable by subsequently compiled schemas.
|
protected boolean |
optionalGettersForNullableFieldsOnly
The optionalGettersForNullableFieldsOnly parameter works in conjunction with
gettersReturnOptional option.
|
protected org.apache.maven.project.MavenProject |
project
The current Maven project.
|
protected String |
stringType
The Java type to use for Avro strings.
|
protected String |
templateDirectory
The directory (within the java classpath) that contains the velocity
templates to use for code generation.
|
protected String[] |
testExcludes
A set of Ant-like exclusion patterns used to prevent certain files from being
processed.
|
protected String[] |
velocityToolsClassesNames
The qualified names of classes which the plugin will look up, instantiate
(through an empty constructor that must exist) and set up to be injected into
Velocity templates by Avro compiler.
|
Constructor and Description |
---|
AbstractAvroMojo() |
Modifier and Type | Method and Description |
---|---|
protected URLClassLoader |
createClassLoader() |
protected abstract void |
doCompile(String filename,
File sourceDirectory,
File outputDirectory) |
void |
execute() |
protected SpecificCompiler.FieldVisibility |
getFieldVisibility() |
protected abstract String[] |
getIncludes() |
protected abstract String[] |
getTestIncludes() |
protected List<Object> |
instantiateAdditionalVelocityTools() |
protected String[] imports
protected String[] excludes
protected String[] testExcludes
protected String stringType
protected String templateDirectory
protected String[] velocityToolsClassesNames
protected boolean createOptionalGetters
protected boolean gettersReturnOptional
protected boolean optionalGettersForNullableFieldsOnly
protected boolean createSetters
protected String[] customConversions
Conversion
implementations to add to the compiler.
The classes must be on the classpath at compile time and whenever the Java
objects are serialized.protected String[] customLogicalTypeFactories
LogicalTypes.LogicalTypeFactory
implementations to
add to the compiler. The classes must be on the classpath at compile time and
whenever the Java objects are serialized.protected boolean enableDecimalLogicalType
protected org.apache.maven.project.MavenProject project
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected SpecificCompiler.FieldVisibility getFieldVisibility()
protected abstract void doCompile(String filename, File sourceDirectory, File outputDirectory) throws IOException
IOException
protected URLClassLoader createClassLoader() throws org.apache.maven.artifact.DependencyResolutionRequiredException, MalformedURLException
org.apache.maven.artifact.DependencyResolutionRequiredException
MalformedURLException
protected abstract String[] getIncludes()
protected abstract String[] getTestIncludes()
Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.