public class FreeMarkerRender extends Render
| 限定符和类型 | 字段和说明 |
|---|---|
private static freemarker.template.Configuration |
config |
private org.slf4j.Logger |
logger |
private static FreeMarkerRender |
render |
private static long |
serialVersionUID |
| 限定符 | 构造器和说明 |
|---|---|
private |
FreeMarkerRender() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configViewPath(String viewPath) |
static freemarker.template.Configuration |
getConfiguration()
freemarker can not load freemarker.properies automatically
|
static FreeMarkerRender |
getInstance() |
(专用程序包) void |
init() |
void |
render()
Render to client
|
static void |
setProperties(Properties properties) |
static void |
setProperty(String propertyName,
String propertyValue)
Set freemarker's property.
|
void |
setView(String view) |
getView, setContext, setContextprivate org.slf4j.Logger logger
private static final long serialVersionUID
private static final transient freemarker.template.Configuration config
private static volatile FreeMarkerRender render
private FreeMarkerRender()
throws IOException
IOExceptionpublic static FreeMarkerRender getInstance() throws IOException
IOExceptionpublic void configViewPath(String viewPath) throws IOException
IOExceptionpublic static freemarker.template.Configuration getConfiguration()
public static void setProperty(String propertyName, String propertyValue)
public static void setProperties(Properties properties)
void init()
throws IOException
IOExceptionpublic void render()
throws IOException
Renderrender 在类中 RenderIOExceptionCopyright © 2014. All rights reserved.