Package io.permazen

Class SchemaUtilityImpl

java.lang.Object
io.permazen.SchemaUtilityImpl
All Implemented Interfaces:
io.permazen.maven.SchemaUtility

public class SchemaUtilityImpl extends Object implements io.permazen.maven.SchemaUtility
Schema utility API.

This API is used by the Maven plugin. We do things this way to avoid plugin class loader issues and to ensure that the schema logic applied at build time matches what will be applied at run time.

  • Constructor Details

    • SchemaUtilityImpl

      public SchemaUtilityImpl()
  • Method Details

    • configure

      public String configure(org.apache.maven.plugin.logging.Log log, String[] packageNames, String[] classNames, String encodingRegistryClass) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      configure in interface io.permazen.maven.SchemaUtility
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • generateSchema

      public void generateSchema(File file) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      generateSchema in interface io.permazen.maven.SchemaUtility
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • verifySchema

      public boolean verifySchema(File file) throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      verifySchema in interface io.permazen.maven.SchemaUtility
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • verifySchemas

      public boolean verifySchemas(Iterator<? extends File> files) throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      verifySchemas in interface io.permazen.maven.SchemaUtility
      Throws:
      org.apache.maven.plugin.MojoExecutionException