@SupportedAnnotationTypes(value="org.mule.runtime.extension.api.annotation.Extension") @SupportedSourceVersion(value=RELEASE_8) @SupportedOptions(value="extension.version") public abstract class BaseExtensionResourcesGeneratorAnnotationProcessor extends AbstractProcessor
Extension or
Extension and uses a ResourcesGenerator to generate 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 void |
configureLoadingRequest(org.mule.runtime.extension.api.loader.ExtensionModelLoadingRequest.Builder requestBuilder)
Override this method for the chance of adding custom parameterization into the
requestBuilder. |
protected org.mule.runtime.extension.api.loader.ExtensionModelLoader |
fetchJavaExtensionModelLoader() |
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 AbstractProcessorprotected org.mule.runtime.extension.api.loader.ExtensionModelLoader fetchJavaExtensionModelLoader()
ExtensionModelLoader for loading Java based Extensionspublic abstract ExtensionElement toExtensionElement(TypeElement typeElement, ProcessingEnvironment processingEnvironment)
protected abstract org.mule.runtime.extension.api.loader.ExtensionModelLoader getExtensionModelLoader()
protected void configureLoadingRequest(org.mule.runtime.extension.api.loader.ExtensionModelLoadingRequest.Builder requestBuilder)
requestBuilder.
The same builder will later be used to create the ExtensionModelLoadingRequest used in the
ExtensionModelLoader.loadExtensionModel(ExtensionModelLoadingRequest) invocation.
This default implementation is no-op
requestBuilder - a ExtensionModelLoadingRequest.Builderprotected abstract boolean shouldProcess(TypeElement extensionElement, ProcessingEnvironment processingEnv)
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.