Class 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 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.
    • Constructor Detail

      • SchemaServiceInterfaceGeneratorMojo

        public SchemaServiceInterfaceGeneratorMojo()
    • 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:
        doCodeGenerationWithSchema in class AbstractSchemaBasedBeanGeneratorMojo
        Throws:
        IOException
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • lowerCaseFirstLetter

        protected static String lowerCaseFirstLetter​(String string)