|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectfreemarker.ext.beans.BeansWrapper
org.apache.struts2.views.freemarker.StrutsBeanWrapper
public class StrutsBeanWrapper
The StrutsBeanWrapper extends the default FreeMarker BeansWrapper and provides almost no change in functionality, except for how it handles maps. Normally, FreeMarker has two modes of operation: either support for friendly map built-ins (?keys, ?values, etc) but only support for String keys; OR no special built-in support (ie: ?keys returns the methods on the map instead of the keys) but support for String and non-String keys alike. Struts provides an alternative implementation that gives us the best of both worlds.
It is possible that this special behavior may be confusing or can cause problems. Therefore, you can set the struts.freemarker.wrapper.altMap property in struts.properties to false, allowing the normal BeansWrapper logic to take place instead.
嵌套类摘要 |
---|
从类 freemarker.ext.beans.BeansWrapper 继承的嵌套类/接口 |
---|
freemarker.ext.beans.BeansWrapper.MethodAppearanceDecision |
字段摘要 |
---|
从类 freemarker.ext.beans.BeansWrapper 继承的字段 |
---|
EXPOSE_ALL, EXPOSE_NOTHING, EXPOSE_PROPERTIES_ONLY, EXPOSE_SAFE |
从接口 freemarker.template.ObjectWrapper 继承的字段 |
---|
BEANS_WRAPPER, DEFAULT_WRAPPER, SIMPLE_WRAPPER |
构造方法摘要 | |
---|---|
StrutsBeanWrapper(boolean altMapWrapper)
|
方法摘要 |
---|
从类 freemarker.ext.beans.BeansWrapper 继承的方法 |
---|
coerceBigDecimal, coerceBigDecimals, coerceBigDecimals, getDefaultInstance, getEnumModels, getOuterIdentity, getStaticModels, isExposeFields, isSimpleMapWrapper, isStrict, newInstance, setDefaultDateType, setExposeFields, setExposureLevel, setMethodsShadowItems, setNullModel, setOuterIdentity, setSimpleMapWrapper, setStrict, setUseCache, unwrap, unwrap, wrap |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public StrutsBeanWrapper(boolean altMapWrapper)
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |