|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tinyjee.maven.dim.spi.AbstractSource
org.tinyjee.maven.dim.sources.AbstractBufferedSource
org.tinyjee.maven.dim.sources.TemplateSource
public class TemplateSource
Wraps a source content that contains a velocity template and executes it on using the Source interfaces.
| Nested Class Summary | |
|---|---|
static class |
TemplateSource.UrlResourceLoader
Resolves templates from Urls. |
| Nested classes/interfaces inherited from class org.tinyjee.maven.dim.sources.AbstractBufferedSource |
|---|
AbstractBufferedSource.BufferedSourceContent |
| Nested classes/interfaces inherited from class org.tinyjee.maven.dim.spi.AbstractSource |
|---|
AbstractSource.SourceContent |
| Nested classes/interfaces inherited from interface org.tinyjee.maven.dim.spi.Source |
|---|
Source.Content |
| Field Summary |
|---|
| Fields inherited from class org.tinyjee.maven.dim.sources.AbstractBufferedSource |
|---|
content |
| Fields inherited from class org.tinyjee.maven.dim.spi.AbstractSource |
|---|
parameters, sourceUrl |
| Constructor Summary | |
|---|---|
TemplateSource(URL sourceUrl,
Source source)
Constructs a new TemplateSource. |
|
| Method Summary | |
|---|---|
protected void |
writeSourceContent(Writer writer)
Is called when the source content has to be created. |
| Methods inherited from class org.tinyjee.maven.dim.sources.AbstractBufferedSource |
|---|
getContent, reset |
| Methods inherited from class org.tinyjee.maven.dim.spi.AbstractSource |
|---|
getUrl, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateSource(URL sourceUrl,
Source source)
sourceUrl - the original source URL (used for naming purposes).source - the source containing the template source and context params.| Method Detail |
|---|
protected void writeSourceContent(Writer writer)
throws IOException
AbstractBufferedSource
writeSourceContent in class AbstractBufferedSourcewriter - the writer to write the source content to.
IOException - in case of writing failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||