From 32af1370ed47b43e6fca035e41adce32dd8e9622 Mon Sep 17 00:00:00 2001 From: Aleksandr Mashchenko Date: Sat, 17 Mar 2018 23:51:44 +0200 Subject: [PATCH] Add ognlAutoGrowthCollectionLimit constant to java config --- .../apache/struts2/config/entities/ConstantConfig.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/src/main/java/org/apache/struts2/config/entities/ConstantConfig.java b/core/src/main/java/org/apache/struts2/config/entities/ConstantConfig.java index 9f191e4b58..371d3f498a 100644 --- a/core/src/main/java/org/apache/struts2/config/entities/ConstantConfig.java +++ b/core/src/main/java/org/apache/struts2/config/entities/ConstantConfig.java @@ -139,6 +139,7 @@ public class ConstantConfig { private BeanConfig textProviderFactory; private BeanConfig localizedTextProvider; private Boolean disallowProxyMemberAccess; + private Integer ognlAutoGrowthCollectionLimit; protected String beanConfToString(BeanConfig beanConf) { return beanConf == null ? null : beanConf.getName(); @@ -266,6 +267,7 @@ public Map getAllAsStringsMap() { map.put(StrutsConstants.STRUTS_TEXT_PROVIDER_FACTORY, beanConfToString(textProviderFactory)); map.put(StrutsConstants.STRUTS_LOCALIZED_TEXT_PROVIDER, beanConfToString(localizedTextProvider)); map.put(StrutsConstants.STRUTS_DISALLOW_PROXY_MEMBER_ACCESS, Objects.toString(disallowProxyMemberAccess, null)); + map.put(StrutsConstants.STRUTS_OGNL_AUTO_GROWTH_COLLECTION_LIMIT, Objects.toString(ognlAutoGrowthCollectionLimit, null)); return map; } @@ -1305,4 +1307,12 @@ public Boolean getDisallowProxyMemberAccess() { public void setDisallowProxyMemberAccess(Boolean disallowProxyMemberAccess) { this.disallowProxyMemberAccess = disallowProxyMemberAccess; } + + public Integer getOgnlAutoGrowthCollectionLimit() { + return ognlAutoGrowthCollectionLimit; + } + + public void setOgnlAutoGrowthCollectionLimit(Integer ognlAutoGrowthCollectionLimit) { + this.ognlAutoGrowthCollectionLimit = ognlAutoGrowthCollectionLimit; + } }