com.googlecode.gendevcode.common
类 VelocityFactory

java.lang.Object
  继承者 com.googlecode.gendevcode.common.VelocityFactory

public class VelocityFactory
extends Object

模板工厂类

作者:
devilishking

构造方法摘要
VelocityFactory()
           
 
方法摘要
static void writeFile(Map<String,Object> dataMap, String vmFileUrl, String genFileUrl, String serverAbsolutePath)
          写入文件
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

VelocityFactory

public VelocityFactory()
方法详细信息

writeFile

public static void writeFile(Map<String,Object> dataMap,
                             String vmFileUrl,
                             String genFileUrl,
                             String serverAbsolutePath)
                      throws Exception
写入文件

参数:
dataMap - 替换集合<标签名, 值>
vmFileUrl - 模板路径
genFileUrl - 生成页面路径
抛出:
Exception


Copyright © 2012 Devilishkom. All Rights Reserved.