public interface GeneratorFactory
provided scope.
maven-shade-plugin.
Providence-Generator-Factory property in the
java MANIFEST.MF to point at the implementation of
this interface.
pvdc for where the jar file
should be placed to be included in the available generators.
<dependencies>
<dependency>
<groupId>net.morimekta.providence</groupId>
<artifactId>providence-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.morimekta.providence</groupId>
<artifactId>providence-reflect</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.morimekta.providence</groupId>
<artifactId>providence-generator</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.morimekta.utils</groupId>
<artifactId>io-util</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Providence-Generator-Factory>net.morimekta.providence.generator.format.js.JSGenerator</Providence-Generator-Factory>
</manifestEntries>
</transformer>
</transformers>
| Modifier and Type | Field and Description |
|---|---|
static String |
MANIFEST_PROPERTY |
| Modifier and Type | Method and Description |
|---|---|
Generator |
createGenerator(FileManager manager,
GeneratorOptions generatorOptions,
Collection<String> options)
Create the actual generator.
|
String |
generatorDescription()
A general description of the generator.
|
String |
generatorName()
The name of the generator.
|
default void |
printGeneratorOptionsHelp(PrintStream out)
Print a listing of the generator options in a CLI like
point list.
|
static final String MANIFEST_PROPERTY
String generatorName()
--gen generator CLI argument.String generatorDescription()
default void printGeneratorOptionsHelp(PrintStream out)
- first : The first option, does this. - second : The second option, does that.
out - The print stream to write to.Generator createGenerator(FileManager manager, GeneratorOptions generatorOptions, Collection<String> options)
manager - The file manager to use for creating files.generatorOptions - The general generator options.options - List of string options to create generator-specific options.Copyright © 2015–2020 morimekta.net. All rights reserved.