Package org.apache.camel.maven.dsl.yaml
Class GenerateYamlDeserializersMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.camel.maven.dsl.yaml.GenerateYamlSupportMojo
-
- org.apache.camel.maven.dsl.yaml.GenerateYamlDeserializersMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate-yaml-deserializers", inheritByDefault=false, defaultPhase=GENERATE_SOURCES, requiresDependencyResolution=COMPILE, threadSafe=true) public class GenerateYamlDeserializersMojo extends GenerateYamlSupportMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected String
packageName
protected File
resourcesOutputDir
protected File
sourcesOutputDir
-
Fields inherited from class org.apache.camel.maven.dsl.yaml.GenerateYamlSupportMojo
additionalDefinitions, bannedDefinitions, CLASS_CLASS, CN_DESERIALIZATION_CONTEXT, CN_DESERIALIZER_BASE, CN_DESERIALIZER_RESOLVER, CN_DESERIALIZER_SUPPORT, CN_ENDPOINT_AWARE_DESERIALIZER_BASE, CN_EXPRESSION_DEFINITION, CN_MAPPING_NODE, CN_NODE, CN_NODE_TUPLE, CN_PROCESSOR_DEFINITION, CN_SEQUENCE_NODE, CN_YAML_IN, CN_YAML_PROPERTY, CN_YAML_SUPPORT, CN_YAML_TYPE, DSL_PROPERTY_ANNOTATION, ERROR_HANDLER_BUILDER_CLASS, EXPRESSION_DEFINITION_CLASS, EXPRESSION_SUBELEMENT_DEFINITION_CLASS, HAS_EXPRESSION_TYPE_CLASS, ID_AWARE_CLASS, LIST_CLASS, METADATA_ANNOTATION_CLASS, OUTPUT_NODE_CLASS, PRIMITIVE_CLASSES, PROCESSOR_DEFINITION_CLASS, project, SEND_DEFINITION_CLASS, SET_CLASS, STRING_CLASS, TO_DYNAMIC_DEFINITION_CLASS, VERB_DEFINITION_CLASS, view, XML_ATTRIBUTE_ANNOTATION_CLASS, XML_ELEMENT_ANNOTATION_CLASS, XML_ELEMENT_REF_ANNOTATION_CLASS, XML_ELEMENTS_ANNOTATION_CLASS, XML_ENUM_CLASS, XML_ROOT_ELEMENT_ANNOTATION_CLASS, XML_TRANSIENT_CLASS, XML_TYPE_CLASS, XML_VALUE_ANNOTATION_CLASS, XML_VALUE_CLASS, YAML_IN_ANNOTATION, YAML_OUT_ANNOTATION, YAML_TYPE_ANNOTATION
-
-
Constructor Summary
Constructors Constructor Description GenerateYamlDeserializersMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generate()
Collection<com.squareup.javapoet.TypeSpec>
generateEndpoint(String className, Predicate<org.apache.camel.tooling.model.ComponentModel> componentFilter, com.squareup.javapoet.TypeName superClass)
Collection<com.squareup.javapoet.TypeSpec>
generateEndpointConsumer()
Collection<com.squareup.javapoet.TypeSpec>
generateEndpointProducer()
-
Methods inherited from class org.apache.camel.maven.dsl.yaml.GenerateYamlSupportMojo
all, annotated, annotationValue, annotationValue, annotationValue, annotationValue, combine, definitions, definitions, elementsOf, execute, extendsType, extendsType, fieldName, fieldName, fields, firstPresent, getYamlTypeOrder, hasAnnotation, hasAnnotation, hasAnnotationValue, implementors, implementsOrExtends, implementType, implementType, isBanned, isRequired, loadClass, loadClass, methods, models, yamlProperty, yamlProperty, yamlPropertyWithFormat, yamlPropertyWithFormat, yamlPropertyWithSubtype, yamlPropertyWithSubtype
-
-
-
-
Field Detail
-
packageName
@Parameter(defaultValue="org.apache.camel.dsl.yaml.deserializers") protected String packageName
-
sourcesOutputDir
@Parameter(defaultValue="${project.basedir}/src/generated/java") protected File sourcesOutputDir
-
resourcesOutputDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File resourcesOutputDir
-
-
Method Detail
-
generate
protected void generate() throws org.apache.maven.plugin.MojoFailureException
- Specified by:
generate
in classGenerateYamlSupportMojo
- Throws:
org.apache.maven.plugin.MojoFailureException
-
generateEndpointConsumer
public final Collection<com.squareup.javapoet.TypeSpec> generateEndpointConsumer()
-
generateEndpointProducer
public final Collection<com.squareup.javapoet.TypeSpec> generateEndpointProducer()
-
generateEndpoint
public final Collection<com.squareup.javapoet.TypeSpec> generateEndpoint(String className, Predicate<org.apache.camel.tooling.model.ComponentModel> componentFilter, com.squareup.javapoet.TypeName superClass)
-
-