You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by am...@apache.org on 2018/03/17 21:52:30 UTC

[struts] branch master updated: Add ognlAutoGrowthCollectionLimit constant to java config

This is an automated email from the ASF dual-hosted git repository.

amashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/master by this push:
     new 32af137  Add ognlAutoGrowthCollectionLimit constant to java config
32af137 is described below

commit 32af1370ed47b43e6fca035e41adce32dd8e9622
Author: Aleksandr Mashchenko <am...@apache.org>
AuthorDate: Sat Mar 17 23:51:44 2018 +0200

    Add ognlAutoGrowthCollectionLimit constant to java config
---
 .../org/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 9f191e4..371d3f4 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 class ConstantConfig {
         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 class ConstantConfig {
     public void setDisallowProxyMemberAccess(Boolean disallowProxyMemberAccess) {
         this.disallowProxyMemberAccess = disallowProxyMemberAccess;
     }
+
+    public Integer getOgnlAutoGrowthCollectionLimit() {
+        return ognlAutoGrowthCollectionLimit;
+    }
+
+    public void setOgnlAutoGrowthCollectionLimit(Integer ognlAutoGrowthCollectionLimit) {
+        this.ognlAutoGrowthCollectionLimit = ognlAutoGrowthCollectionLimit;
+    }
 }

-- 
To stop receiving notification emails like this one, please contact
amashchenko@apache.org.