Hey guys,
I created a binding which requires a mandatory configuration parameter which contains the url of a server:
binding.xml
<config-description>
<parameter name="server" type="text" required="true">
<label>server url</label>
<description>Required Property, always set this one</description>
</parameter>
</config-description>
To get the parameter value, I'am using
MyHandlerFactory.java
@Override
protected void activate(ComponentContext componentContext) {
super.activate(componentContext);
Dictionary<String, Object> properties = componentContext.getProperties();
String server = (String) properties.get("server");
in my BaseThingHandlerFactory, which works quite well. Unfortunately my AbstractDiscoveryService's activate method is not called again, as it is in the BaseThingHandlerFactory, when setting the property in paperUI.
I have to know the property value in my discovery service, as without the server URL discovery is not possible at all.
So how to get this property's value in a AbstractDiscoveryService?
Best Regards,
-mk