public class RythmEngine.RenderSettings extends Object
Define the render time settings, which is intialized each time a renderXX method get called
| Modifier and Type | Method and Description |
|---|---|
RythmEngine |
clear()
Clear the render time after render process done
|
ICodeType |
codeType()
Return thread local code type
|
RythmEngine.RenderSettings |
init(ICodeType codeType)
Init the render time by setting
code type. |
RythmEngine.RenderSettings |
init(Locale locale)
Init the render time by setting
locale. |
RythmEngine.RenderSettings |
init(Map<String,Object> usrCtx)
Init the render time by setting user context This method should called before calling render methods to setup the context of this render
|
Locale |
locale()
Return ThreadLocal locale.
|
Map<String,Object> |
userContext()
Return thread local user context map
|
public final RythmEngine.RenderSettings init(ICodeType codeType)
Init the render time by setting code type. This method should called before calling render methods to setup the context of this render
codeType - public final RythmEngine.RenderSettings init(Locale locale)
Init the render time by setting locale. This method should called before calling render methods to setup the context of this render
locale - public final RythmEngine.RenderSettings init(Map<String,Object> usrCtx)
Init the render time by setting user context This method should called before calling render methods to setup the context of this render
usrCtx - public final Locale locale()
Return ThreadLocal locale.
public final ICodeType codeType()
Return thread local code type
code type setting for this render processpublic final Map<String,Object> userContext()
Return thread local user context map
public final RythmEngine clear()
Clear the render time after render process done
Copyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.