Package io.permazen
Class SchemaUtilityImpl
java.lang.Object
io.permazen.SchemaUtilityImpl
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionconfigure
(org.apache.maven.plugin.logging.Log log, String[] packageNames, String[] classNames, String encodingRegistryClass) void
generateSchema
(File file) boolean
verifySchema
(File file) boolean
verifySchemas
(Iterator<? extends File> files)
-
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 interfaceio.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 interfaceio.permazen.maven.SchemaUtility
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
verifySchema
- Specified by:
verifySchema
in interfaceio.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 interfaceio.permazen.maven.SchemaUtility
- Throws:
org.apache.maven.plugin.MojoExecutionException
-