@SupportedAnnotationTypes(value="org.mule.runtime.extension.api.annotation.Extension") @SupportedSourceVersion(value=RELEASE_8) @SupportedOptions(value="extension.version") public abstract class BaseExtensionResourcesGeneratorAnnotationProcessor extends AbstractProcessor
Extension and use a
ResourcesGenerator to generated the required resources.
This annotation processor will automatically generate and package into the output jar the XSD schema, spring bundles and extension registration files necessary for mule to work with this extension.
Depending on the model properties declared by each extension, some of those resources might or might not be generated
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPILATION_MODE |
static String |
EXTENSION_ELEMENT |
static String |
EXTENSION_TYPE |
static String |
EXTENSION_VERSION |
static String |
PROBLEMS_HANDLER |
static String |
PROCESSING_ENVIRONMENT |
static String |
ROUND_ENVIRONMENT |
processingEnv| Constructor and Description |
|---|
BaseExtensionResourcesGeneratorAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.mule.runtime.extension.api.loader.ExtensionModelLoader |
getExtensionModelLoader() |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected abstract boolean |
shouldProcess(TypeElement extensionElement,
ProcessingEnvironment processingEnv) |
abstract ExtensionElement |
toExtensionElement(TypeElement typeElement,
ProcessingEnvironment processingEnvironment) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitializedpublic static final String PROCESSING_ENVIRONMENT
public static final String EXTENSION_ELEMENT
public static final String ROUND_ENVIRONMENT
public static final String PROBLEMS_HANDLER
public static final String EXTENSION_VERSION
public static final String EXTENSION_TYPE
public static final String COMPILATION_MODE
public BaseExtensionResourcesGeneratorAnnotationProcessor()
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorpublic abstract ExtensionElement toExtensionElement(TypeElement typeElement, ProcessingEnvironment processingEnvironment)
protected abstract org.mule.runtime.extension.api.loader.ExtensionModelLoader getExtensionModelLoader()
protected abstract boolean shouldProcess(TypeElement extensionElement, ProcessingEnvironment processingEnv)
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.