[
https://issues.apache.org/jira/browse/OFBIZ-10368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pradhan Yash Sharma updated OFBIZ-10368:
----------------------------------------
Attachment: OFBIZ-10368.patch
> 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
> 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)