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 <[email protected]>
Gesendet: Montag, 11. Oktober 2021 21:27
An: [email protected]
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
>
>