You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Arun Patidar (JIRA)" <ji...@apache.org> on 2018/06/23 10:26:00 UTC
[jira] [Commented] (OFBIZ-10368) Implement Depends on support for
Component Loading.
[ https://issues.apache.org/jira/browse/OFBIZ-10368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16521039#comment-16521039 ]
Arun Patidar commented on OFBIZ-10368:
--------------------------------------
+1, nice idea. But did not tested the feature locally.
> 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)