eu.scape_project.xa.tw.tmpl
Class GenericCode
java.lang.Object
eu.scape_project.xa.tw.tmpl.Code
eu.scape_project.xa.tw.tmpl.GenericCode
public class GenericCode
- extends Code
Template-based service code generator.
The service code can be evaluated by the Velocity template
engine. Evaluation is performed by applying the Velocity context to the
source code content.
- Version:
- 0.3
- Author:
- shsdev https://github.com/shsdev
Constructor Summary |
GenericCode(String filePath)
Constructor for a service code instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericCode
public GenericCode(String filePath)
throws IOException
- Constructor for a service code instance
- Parameters:
filePath
- Path to template file
- Throws:
IOException
- Exception while reading the template file
create
public void create(String targetFilePath)
throws IOException
- Parameters:
targetFilePath
-
- Throws:
IOException
Copyright © 2013. All Rights Reserved.