[ https://issues.apache.org/jira/browse/OFBIZ-10368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16576338#comment-16576338 ]
Jacques Le Roux edited comment on OFBIZ-10368 at 8/10/18 2:23 PM: ------------------------------------------------------------------ Hi Yash, This works well and I'm ready to commit. We just need to update ofbiz-component.xsd BTW ebaystore is not a good example, this plugin is disabled ;) Though it also shows that you can't depend on a disabled component, so maybe a good example for thorough tests actually :) was (Author: jacques.le.roux): Hi Yash, This works well and I'm ready to commit. We just need to update ofbiz-component.xsd BTW ebaystore is not a good example, this plugin is disabled ;) > Implement Depends on support for Component Loading. > --------------------------------------------------- > > Key: OFBIZ-10368 > URL: https://issues.apache.org/jira/browse/OFBIZ-10368 > Project: OFBiz > Issue Type: New Feature > Components: framework > Affects Versions: Trunk > Reporter: Pradhan Yash Sharma > Assignee: Jacques Le Roux > Priority: Minor > Fix For: Trunk > > Attachments: OFBIZ-10368.patch > > > 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. > > {code:java} > <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"/>{code} > > Now we can declare dependency and if any anomaly is found loading of > components will stop. -- This message was sent by Atlassian JIRA (v7.6.3#76005)