[ 
https://issues.apache.org/jira/browse/STREAMPIPES-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17029673#comment-17029673
 ] 

Philipp Zehnder commented on STREAMPIPES-69:
--------------------------------------------

[~riemer], I have a question regarding this issue:

So far we used the deprecated method Labels.from for the configuration 
parameters. (e.g. Labels.from("topic", "Topic","Example: test/topic"). Now with 
the new API (e.g. Labels.withId("topic")) we would need a file with the label 
values (e.g. strings.en).

Now, how can we handle to extract the common configurations for MQTT in a 
single utils class, using the new API, without adding the label values to each 
strings.en file? 

For the first iteration I'll implement a single utils class with all 
configuration code to remove duplicate code from multiple adapters. Should we 
later integrate it into the AdapterBuilders?

> Extract utils class for mqtt related configurations
> ---------------------------------------------------
>
>                 Key: STREAMPIPES-69
>                 URL: https://issues.apache.org/jira/browse/STREAMPIPES-69
>             Project: StreamPipes
>          Issue Type: Improvement
>          Components: Connect
>            Reporter: Philipp Zehnder
>            Assignee: Philipp Zehnder
>            Priority: Normal
>
> We have multiple adapters that connect to a MQTT broker. Therefore, they need 
> the same configuration parameters.
> To avoid having to implement these for every adapter we need a Utils class 
> which encapsulates the configuration. 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to