Skip to content

Custom Modules (Version 1)

Ryan Heaton edited this page Sep 17, 2015 · 2 revisions

Note: The following is applicable to Enunciate 1.x. For Enunciate 2 custom modules, see Custom Modules.

Custom Modules

An Enunciate module is simply a class that implements org.codehaus.enunciate.modules.DeploymentModule. If you're writing you're own module, you may want to start by extending BasicDeploymentModule, or if you want to use Freemarker templates during your generate step (as do most of the current Enunciate modules), then you may want to extend FreemarkerDeploymentModule.

Package your module into a jar, making sure your module class name is put in a file META-INF/services/org.codehaus.enunciate.modules.DeploymentModule in the jar (see Java Service Loader documentation for details). If your jar is on the classpath when you invoke Enunciate, it should included as part of the engine.

Clone this wiki locally