This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/struts.git
from 5ae9688ae Merge pull request #551 from apache/dependabot/maven/xerces-xercesImpl-2.12.2 new 4d8108e76 Update: - Add support for an optional basic LRU cache for OGNL expressions and OGNL BeanInfo. - Add support for cache limits applying to both normal and LRU caches. For a normal cache the entire cache will flush when the limit is reached. - Add flags to allow switching between normal and LRU caches, and setting the maximum sizes. new fbb31ee65 Update: - Refactored the cache design to utilize a factory pattern. - Updated unit tests to match refactoring. new 4c3701102 Merge branch 'master' of https://github.com/JCgH4164838Gh792C124B5/struts into localS2_26_OgnlUtilOptionalCache1 new 084c66723 Update: - Implement a no-parameter build method in OgnlCacheFactory. - Update OgnlUtil to use no-parameter cache build method. - Add an additional code coverage test. new 199f35666 Update: - Added some IDE-recommended annotations and cleanup to some of the modified files. - Applied easier-to-read/differentiate names "ognlExpressionCacheFactory" and "ognlBeanInfoCacheFactory" for the cache factory configuration extension points. - Reorded default configuration factory init for the cache factories (did not help extension override). - Cleanup of parameterized OgnlUtil constructor. - Added extension point aliases to StrutsBeanSelectionProvide [...] new 05ca1ff08 Ties cache extension points with implementation new 16e7c9b45 Merge pull request #1 from apache/use-extension-point new b72200aab Merge branch 'master' into localS2_26_OgnlUtilOptionalCache1 new c98b60cd9 Merge pull request #528 from JCgH4164838Gh792C124B5/localS2_26_OgnlUtilOptionalCache1 The 6254 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../xwork2/config/impl/DefaultConfiguration.java | 31 +- .../StrutsDefaultConfigurationProvider.java | 11 + .../xwork2/ognl/BeanInfoCacheFactory.java | 17 +- .../ognl/DefaultOgnlBeanInfoCacheFactory.java | 44 +++ .../xwork2/ognl/DefaultOgnlCacheFactory.java | 66 ++++ .../ognl/DefaultOgnlExpressionCacheFactory.java | 44 +++ .../xwork2/ognl/ExpressionCacheFactory.java | 17 +- .../com/opensymphony/xwork2/ognl/OgnlCache.java | 41 +++ .../opensymphony/xwork2/ognl/OgnlCacheFactory.java | 29 +- .../opensymphony/xwork2/ognl/OgnlDefaultCache.java | 85 +++++ .../com/opensymphony/xwork2/ognl/OgnlLRUCache.java | 87 +++++ .../com/opensymphony/xwork2/ognl/OgnlUtil.java | 58 +++- .../java/org/apache/struts2/StrutsConstants.java | 66 ++++ .../config/StrutsBeanSelectionProvider.java | 6 + .../struts2/config/entities/ConstantConfig.java | 28 ++ .../org/apache/struts2/default.properties | 31 ++ core/src/main/resources/struts-default.xml | 3 + .../com/opensymphony/xwork2/ognl/OgnlUtilTest.java | 379 ++++++++++++++++++++- 18 files changed, 986 insertions(+), 57 deletions(-) copy apps/showcase/src/main/webapp/WEB-INF/conversion/OperationsEnum.java.txt => core/src/main/java/com/opensymphony/xwork2/ognl/BeanInfoCacheFactory.java (71%) create mode 100644 core/src/main/java/com/opensymphony/xwork2/ognl/DefaultOgnlBeanInfoCacheFactory.java create mode 100644 core/src/main/java/com/opensymphony/xwork2/ognl/DefaultOgnlCacheFactory.java create mode 100644 core/src/main/java/com/opensymphony/xwork2/ognl/DefaultOgnlExpressionCacheFactory.java copy apps/showcase/src/main/webapp/WEB-INF/conversion/OperationsEnum.java.txt => core/src/main/java/com/opensymphony/xwork2/ognl/ExpressionCacheFactory.java (71%) create mode 100644 core/src/main/java/com/opensymphony/xwork2/ognl/OgnlCache.java copy apps/showcase/src/main/webapp/WEB-INF/conversion/Address.java.txt => core/src/main/java/com/opensymphony/xwork2/ognl/OgnlCacheFactory.java (50%) create mode 100644 core/src/main/java/com/opensymphony/xwork2/ognl/OgnlDefaultCache.java create mode 100644 core/src/main/java/com/opensymphony/xwork2/ognl/OgnlLRUCache.java