Files
ofbiz-framework/framework/base
Jacques Le Roux a5fd3fd7eb 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

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840141 13f79535-47bb-0310-9956-ffa450edef68
2018-09-05 16:29:48 +00:00
..