@SupportedAnnotationTypes(value="org.apache.camel.spi.*") public class EndpointAnnotationProcessor extends AbstractProcessor
UriEndpoint
s and generate json schema documentation for the endpoint/component.processingEnv
Constructor and Description |
---|
EndpointAnnotationProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
createParameterJsonSchema(ComponentModel componentModel,
Set<ComponentOption> componentOptions,
Set<EndpointPath> endpointPaths,
Set<EndpointOption> endpointOptions,
String[] schemes) |
protected void |
findClassProperties(PrintWriter writer,
RoundEnvironment roundEnv,
ComponentModel componentModel,
Set<EndpointPath> endpointPaths,
Set<EndpointOption> endpointOptions,
TypeElement classElement,
String prefix,
String excludeProperties) |
protected void |
findComponentClassProperties(PrintWriter writer,
RoundEnvironment roundEnv,
ComponentModel componentModel,
Set<ComponentOption> componentOptions,
TypeElement classElement,
String prefix) |
protected ComponentModel |
findComponentProperties(RoundEnvironment roundEnv,
org.apache.camel.spi.UriEndpoint uriEndpoint,
TypeElement endpointClassElement,
String title,
String scheme,
String extendsScheme,
String label) |
SourceVersion |
getSupportedSourceVersion() |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected void |
writeJSonSchemeDocumentation(PrintWriter writer,
RoundEnvironment roundEnv,
TypeElement classElement,
org.apache.camel.spi.UriEndpoint uriEndpoint,
String title,
String scheme,
String extendsScheme,
String label,
String[] schemes) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
protected void writeJSonSchemeDocumentation(PrintWriter writer, RoundEnvironment roundEnv, TypeElement classElement, org.apache.camel.spi.UriEndpoint uriEndpoint, String title, String scheme, String extendsScheme, String label, String[] schemes)
public String createParameterJsonSchema(ComponentModel componentModel, Set<ComponentOption> componentOptions, Set<EndpointPath> endpointPaths, Set<EndpointOption> endpointOptions, String[] schemes)
protected ComponentModel findComponentProperties(RoundEnvironment roundEnv, org.apache.camel.spi.UriEndpoint uriEndpoint, TypeElement endpointClassElement, String title, String scheme, String extendsScheme, String label)
protected void findComponentClassProperties(PrintWriter writer, RoundEnvironment roundEnv, ComponentModel componentModel, Set<ComponentOption> componentOptions, TypeElement classElement, String prefix)
protected void findClassProperties(PrintWriter writer, RoundEnvironment roundEnv, ComponentModel componentModel, Set<EndpointPath> endpointPaths, Set<EndpointOption> endpointOptions, TypeElement classElement, String prefix, String excludeProperties)
Apache Camel