You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ingo Wolfmayr <in...@wolfix.at> on 2021/10/11 14:21:22 UTC
Plugin available check?
Hi,
is there a recommended Ofbiz-way to check if a plugin is available/installed - in Java?
Best regards,
Ingo
AW: Plugin available check?
Posted by Ingo Wolfmayr <in...@wolfix.at>.
Hi Michael,
thank a lot. That was the right pointer. It is quite simple:
import org.apache.ofbiz.base.component.ComponentConfig;
import org.apache.ofbiz.base.component.ComponentException;
ComponentConfig config;
try {
config = ComponentConfig.getComponentConfig("myaddon");
} catch (ComponentException e) {
Debug.logWarning("ComponentConfig does not exist", module);
}
Best regards,
Ingo
-----Ursprüngliche Nachricht-----
Von: Michael Brohl <mi...@ecomify.de>
Gesendet: Montag, 11. Oktober 2021 21:27
An: user@ofbiz.apache.org
Betreff: Re: Plugin available check?
Hi Ingo,
I have no access to the code right now, but have you checked the code behind the artifact info in webtools [1] ?
This might give you some hints.
Best regards,
Michael Brohl
ecomify GmbH - www.ecomify.de
[1] https://demo-stable.ofbiz.apache.org/webtools/control/ViewComponents
Am 11.10.21 um 16:21 schrieb Ingo Wolfmayr:
> Hi,
>
> is there a recommended Ofbiz-way to check if a plugin is available/installed - in Java?
>
> Best regards,
> Ingo
>
>
Re: Plugin available check?
Posted by Michael Brohl <mi...@ecomify.de>.
Hi Ingo,
I have no access to the code right now, but have you checked the code
behind the artifact info in webtools [1] ?
This might give you some hints.
Best regards,
Michael Brohl
ecomify GmbH - www.ecomify.de
[1] https://demo-stable.ofbiz.apache.org/webtools/control/ViewComponents
Am 11.10.21 um 16:21 schrieb Ingo Wolfmayr:
> Hi,
>
> is there a recommended Ofbiz-way to check if a plugin is available/installed - in Java?
>
> Best regards,
> Ingo
>
>