/[Apache-SVN]
ViewVC logotype

Revision 1854668


Jump to revision: Previous Next
Author: mthl
Date: Sat Mar 2 19:40:48 2019 UTC (5 years, 1 month ago)
Changed paths: 4
Log Message:
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.


Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptHelperFactory.java deleted
Directoryofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptUtil.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/framework/common/src/main/java/META-INF/services/org.apache.ofbiz.base.util.ScriptHelperFactory deleted
Directoryofbiz/ofbiz-framework/trunk/framework/common/src/main/java/org/apache/ofbiz/common/scripting/ScriptHelperFactoryImpl.java deleted

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26