Package org.bndly.schema.beans
Class SchemaServiceImplGeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
-
- org.bndly.schema.beans.SchemaServiceImplGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generateServiceImpl") public class SchemaServiceImplGeneratorMojo extends AbstractSchemaBasedBeanGeneratorMojo
Generates Service Layer Client Interfaces from Schema
-
-
Field Summary
Fields Modifier and Type Field Description protected StringgeneratedModelImplPackageThe package name to use for looking schema rest bean interfaces.protected StringgeneratedServiceApiPackageThe package name to use for looking generated service interfaces.protected static StringGENERIC_RESOURCE_SERVICE_IMPLprotected StringschemaBeanSourcePackageThe package name to use for looking schema bean interfaces.protected StringschemaRestBeanSourcePackageThe package name to use for looking schema rest bean interfaces.protected static StringSERVICE_IMPL_SUFFIX-
Fields inherited from class org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
importStateHolder, schemaExtensions, schemaProviderClass, schemaRoot, targetFolder, targetPackage
-
-
Constructor Summary
Constructors Constructor Description SchemaServiceImplGeneratorMojo()
-
Method Summary
All 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)-
Methods inherited from class org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
execute, writeCodeToFile, writeCodeToFile, writeCodeToFile
-
-
-
-
Field Detail
-
GENERIC_RESOURCE_SERVICE_IMPL
protected static final String GENERIC_RESOURCE_SERVICE_IMPL
- See Also:
- Constant Field Values
-
SERVICE_IMPL_SUFFIX
protected static final String SERVICE_IMPL_SUFFIX
- See Also:
- Constant Field Values
-
generatedServiceApiPackage
@Parameter protected String generatedServiceApiPackage
The package name to use for looking generated service interfaces.
-
schemaBeanSourcePackage
@Parameter protected String schemaBeanSourcePackage
The package name to use for looking schema bean interfaces.
-
schemaRestBeanSourcePackage
@Parameter protected String schemaRestBeanSourcePackage
The package name to use for looking schema rest bean interfaces.
-
generatedModelImplPackage
@Parameter protected String generatedModelImplPackage
The package name to use for looking schema rest bean interfaces.
-
-
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
-
-