Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10368

Implement Depends on support for Component Loading.

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: 18.12.01
    • Component/s: framework
    • Labels:
      None

      Description

      Components are loaded in the order they are found (i.e. alphabetic or creation date). This can be altered. We have a pending feature support for ofbiz-component, for creating a series of dependency for component loading, before loading a particular component.
       
      Here 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). 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"/>

       
      Now we can declare dependency and if any anomaly is found loading of components will stop.  

        Attachments

        1. OFBIZ-10368.patch
          12 kB
          Pradhan Yash Sharma

          Activity

            People

            • Assignee:
              jleroux Jacques Le Roux
              Reporter:
              PradhanYashSharma Pradhan Yash Sharma
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: