public abstract class AbstractAvroMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | createOptionalGettersThe createOptionalGetters parameter enables generating the getOptional... | 
| protected boolean | createSettersDetermines whether or not to create setters for the fields of the record. | 
| protected String[] | customConversionsA set of fully qualified class names of custom
  Conversionimplementations to add to the compiler. | 
| protected String[] | customLogicalTypeFactoriesA set of fully qualified class names of custom
  LogicalTypes.LogicalTypeFactoryimplementations to
 add to the compiler. | 
| protected boolean | enableDecimalLogicalTypeDetermines whether or not to use Java classes for decimal types | 
| protected String[] | excludesA set of Ant-like exclusion patterns used to prevent certain files from being
 processed. | 
| protected boolean | gettersReturnOptionalThe gettersReturnOptional parameter enables generating get... | 
| protected String[] | importsA list of files or directories that should be compiled first thus making them
 importable by subsequently compiled schemas. | 
| protected boolean | optionalGettersForNullableFieldsOnlyThe optionalGettersForNullableFieldsOnly parameter works in conjunction with
 gettersReturnOptional option. | 
| protected org.apache.maven.project.MavenProject | projectThe current Maven project. | 
| protected String | stringTypeThe Java type to use for Avro strings. | 
| protected String | templateDirectoryThe directory (within the java classpath) that contains the velocity
 templates to use for code generation. | 
| protected String[] | testExcludesA set of Ant-like exclusion patterns used to prevent certain files from being
 processed. | 
| protected String[] | velocityToolsClassesNamesThe 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.MojoExecutionExceptionprotected SpecificCompiler.FieldVisibility getFieldVisibility()
protected abstract void doCompile(String filename, File sourceDirectory, File outputDirectory) throws IOException
IOExceptionprotected URLClassLoader createClassLoader() throws org.apache.maven.artifact.DependencyResolutionRequiredException, MalformedURLException
org.apache.maven.artifact.DependencyResolutionRequiredExceptionMalformedURLExceptionprotected abstract String[] getIncludes()
protected abstract String[] getTestIncludes()
Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.