Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Improved: Disallow extension of the script helper bindings (OFBIZ-10825)
‘ScriptHelper’ is a mechanism used to add some useful bindings to scripts. This feature has been introduced in revision 1299924 by Adrian Crum as part of an general effort of supporting the Generic Scripting Engine specified by JSR-223. Previously this mechanism was extensible, however it appears to be undesirable (nor used in practice) to extend the bindings available to services since the internal service implementations are highly coupled to those bindings. As a consequence the usage of the Abstract Factory pattern which was used for that purpose is now removed. The side effect of this change is that we have now simpler code. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1854668 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
with
5 additions
and 109 deletions.
- +0 −31 framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptHelperFactory.java
- +5 −25 framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptUtil.java
- +0 −18 framework/common/src/main/java/META-INF/services/org.apache.ofbiz.base.util.ScriptHelperFactory
- +0 −35 framework/common/src/main/java/org/apache/ofbiz/common/scripting/ScriptHelperFactoryImpl.java
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters