Author: jleroux
Date: Wed Sep 5 16:29:48 2018
New Revision: 1840141
URL:
http://svn.apache.org/viewvc?rev=1840141&view=revLog:
Implemented: Implement Depends on support for Component Loading.
(OFBIZ-10368)
Components are loaded in the order they are found (i.e. alphabetic or creation
date).
Here is a feature which supports in ofbiz-component to create a series of
dependencies for components loading, before loading a particular component.
We can define a dependency for a component, like component ebaystore is
dependent on Component ebay (even multiple dependencies for a single component
is supported).
We can declare it in this fashion in ofbiz-component.xml file.
<ofbiz-component name="ebaystore" enabled="true"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="
http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
<depends-on component-name="ebay"/>
If any anomaly is found loading of components will stop.
Thanks: Pradhan Yash Sharma
Modified:
ofbiz/ofbiz-framework/trunk/framework/base/dtd/ofbiz-component.xsd
Modified: ofbiz/ofbiz-framework/trunk/framework/base/dtd/ofbiz-component.xsd
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/dtd/ofbiz-component.xsd?rev=1840141&r1=1840140&r2=1840141&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/dtd/ofbiz-component.xsd (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/dtd/ofbiz-component.xsd Wed Sep 5 16:29:48 2018
@@ -54,7 +54,9 @@ under the License.
Using depends-on allows to create a series of dependencies for component loading, before loading a particular component.
For instance we can define dependency for a component like component ebaystore is dependent on component ebay
- (even multiple dependencies for a single component is also supported).
+ (even multiple dependencies for a single component is supported).
+
+ If any anomaly is found loading of components will stop.
We can declare it in this fashion in ofbiz-component.xml file (beware ebaystore is disabled by default)
<![CDATA[