eu.scape_project.xa.tw.tmpl
Class GenericCode

java.lang.Object
  extended by eu.scape_project.xa.tw.tmpl.Code
      extended by 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
 
Method Summary
 void create(String targetFilePath)
           
 
Methods inherited from class eu.scape_project.xa.tw.tmpl.Code
evaluate, getCode, getCtx, put, put, setCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

create

public void create(String targetFilePath)
            throws IOException
Parameters:
targetFilePath -
Throws:
IOException


Copyright © 2013. All Rights Reserved.