2tsheep opened a new issue, #1643:
URL: https://github.com/apache/camel-kamelets/issues/1643

   Hello everyone,
   I hope that this is the right place for this question.
   
   I want to create a connection bean to an influxdb in yaml dsl. However, I 
was not able to find anything in the documentation or in the examples which 
specifies how a static or even a specific method can be addressed. Here is an 
example Code Snippet: 
   `
   - beans: 
     - name: "influxdb"
       type: "org.influxdb.InfluxDBFactory"
       properties:
         url: "http://localhost:8086";
   ` 
   This does not work since this class does not have a constructor which 
returns an instance of InfluxdDB and I cannot figure out how to specify that I 
want to address the "connect" method provided in that class.  I know that this 
class references uses the constructors of org.influxdb.impl.InfluxDBImpl to 
create the desired instances but I don't know either how I could create and 
pass an Object of type OkHttpClient to that constructor,
   
   Is there a way to address static methods when creating beans ?
   What would be the recommended way to achieve the desired behaviour?
   
   Thank you in advance for your help!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to