public abstract class FreeMarkerWriter<C> extends Object implements CdkWriter
Base class for all output file buildes that use FreeMarker as template engine.
| Constructor and Description |
|---|
FreeMarkerWriter(FreeMarkerRenderer configuration,
FileManager output) |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(ComponentLibrary library,
C c) |
protected String |
getJavaFileName(ClassName targetClass) |
protected Writer |
getOutput(ComponentLibrary library,
C c) |
protected String |
getOutputFileName(C c) |
protected abstract String |
getTemplateName() |
public FreeMarkerWriter(FreeMarkerRenderer configuration, FileManager output)
public void generate(ComponentLibrary library, C c) throws CdkException
CdkExceptionprotected Writer getOutput(ComponentLibrary library, C c) throws CdkException
CdkExceptionprotected String getOutputFileName(C c) throws CdkException
CdkExceptionprotected abstract String getTemplateName()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.