Package org.bndly.schema.beans
Class SchemaServiceInterfaceGeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
-
- org.bndly.schema.beans.SchemaServiceInterfaceGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generateServices") public class SchemaServiceInterfaceGeneratorMojo extends AbstractSchemaBasedBeanGeneratorMojo
Generates Service Layer Client Interfaces from Schema
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCUSTOM_INTERFACE_PREFIXStringcustomServiceInterfacesPathThe package name to use for looking custom service interfaces.protected StringschemaBeanSourcePackageThe package name to use for looking schema bean interfaces.protected static StringSERVICE_INTERFACE_PREFIXprotected static StringSERVICE_INTERFACE_SUFFIXStringspringBeanDefinitionPathA path to a file that should contain an example of a spring bean definition to use the services provided by the current maven module.StringspringBeanServiceImplementationPackageThe package name to use for service implementations to generate spring context file.-
Fields inherited from class org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
importStateHolder, schemaExtensions, schemaProviderClass, schemaRoot, targetFolder, targetPackage
-
-
Constructor Summary
Constructors Constructor Description SchemaServiceInterfaceGeneratorMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCodeGenerationWithSchema(org.bndly.schema.model.Schema schema, org.bndly.code.common.CodeGenerationContext ctx, File path)protected static StringlowerCaseFirstLetter(String string)-
Methods inherited from class org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
execute, writeCodeToFile, writeCodeToFile, writeCodeToFile
-
-
-
-
Field Detail
-
schemaBeanSourcePackage
@Parameter protected String schemaBeanSourcePackage
The package name to use for looking schema bean interfaces.
-
customServiceInterfacesPath
@Parameter public String customServiceInterfacesPath
The package name to use for looking custom service interfaces.
-
springBeanServiceImplementationPackage
@Parameter public String springBeanServiceImplementationPackage
The package name to use for service implementations to generate spring context file.
-
springBeanDefinitionPath
@Parameter public String springBeanDefinitionPath
A path to a file that should contain an example of a spring bean definition to use the services provided by the current maven module.
-
SERVICE_INTERFACE_PREFIX
protected static final String SERVICE_INTERFACE_PREFIX
- See Also:
- Constant Field Values
-
CUSTOM_INTERFACE_PREFIX
protected static final String CUSTOM_INTERFACE_PREFIX
- See Also:
- Constant Field Values
-
SERVICE_INTERFACE_SUFFIX
protected static final String SERVICE_INTERFACE_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
doCodeGenerationWithSchema
protected void doCodeGenerationWithSchema(org.bndly.schema.model.Schema schema, org.bndly.code.common.CodeGenerationContext ctx, File path) throws IOException, org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
doCodeGenerationWithSchemain classAbstractSchemaBasedBeanGeneratorMojo- Throws:
IOExceptionorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-