Package org.apache.camel.maven.packaging
Class EndpointSchemaGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGeneratorMojo
org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-endpoint-schema",
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=PROCESS_CLASSES)
public class EndpointSchemaGeneratorMojo
extends AbstractGeneratorMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.jboss.jandex.DotNameprotected Filestatic final org.jboss.jandex.DotNameprotected org.jboss.jandex.IndexViewprotected Fileprotected Filestatic final org.jboss.jandex.DotNameFields inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
buildContext, GENERATED_MSG, NL, project, projectHelperFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionEndpointSchemaGeneratorMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected voidfindClassProperties(org.apache.camel.tooling.model.ComponentModel componentModel, Class<?> classElement, Set<String> excludes, String prefix, String nestedTypeName, String nestedFieldName, boolean componentOption) protected voidfindComponentClassProperties(org.apache.camel.tooling.model.ComponentModel componentModel, Class<?> classElement, String prefix, String nestedTypeName, String nestedFieldName) protected org.apache.camel.tooling.model.ComponentModelfindComponentProperties(org.apache.camel.spi.UriEndpoint uriEndpoint, Class<?> endpointClassElement, String title, String scheme, String extendsScheme, String label, String[] schemes) protected voidgenerateMetaInfConfigurer(String name, String fqn) protected voidgeneratePropertyConfigurer(String pn, String cn, String fqn, String en, String pfqn, String psn, String scheme, boolean hasSuper, boolean component, Collection<? extends org.apache.camel.tooling.model.BaseOptionModel> options, org.apache.camel.tooling.model.ComponentModel model) getDocumentationWithNotes(org.apache.camel.tooling.model.BaseOptionModel option) protected booleanupdateResource(Path dir, String file, String data) protected org.apache.camel.tooling.model.ComponentModelwriteJSonSchemeAndPropertyConfigurer(Class<?> classElement, org.apache.camel.spi.UriEndpoint uriEndpoint, String title, String scheme, String extendsScheme, String label, String[] schemes, org.apache.camel.tooling.model.ComponentModel parentData) Methods inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
addResourceDirectory, cache, canonicalClassName, createProperties, createProperties, execute, findConfigurations, format, getProjectClassLoader, haveResourcesChanged, isJsonFile, loadClass, newTreeSet, refresh, refresh, updateResource, velocityMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
URI_ENDPOINT
public static final org.jboss.jandex.DotName URI_ENDPOINT -
COMPONENT
public static final org.jboss.jandex.DotName COMPONENT -
API_PARAMS
public static final org.jboss.jandex.DotName API_PARAMS -
classesDirectory
-
sourcesOutputDir
-
resourcesOutputDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File resourcesOutputDir -
indexView
protected org.jboss.jandex.IndexView indexView -
resources
-
sourceRoots
-
sources
-
parsed
-
-
Constructor Details
-
EndpointSchemaGeneratorMojo
@Inject public EndpointSchemaGeneratorMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
writeJSonSchemeAndPropertyConfigurer
protected org.apache.camel.tooling.model.ComponentModel writeJSonSchemeAndPropertyConfigurer(Class<?> classElement, org.apache.camel.spi.UriEndpoint uriEndpoint, String title, String scheme, String extendsScheme, String label, String[] schemes, org.apache.camel.tooling.model.ComponentModel parentData) -
updateResource
- Overrides:
updateResourcein classAbstractGeneratorMojo
-
getDocumentationWithNotes
-
findComponentProperties
-
findComponentClassProperties
-
findClassProperties
-
generatePropertyConfigurer
-
generateMetaInfConfigurer
-