camel-tooling / camel-idea-plugin

Apache Camel Intellij IDEA plugin
Apache License 2.0
202 stars 52 forks source link

Bean method completion support :: method reference #393

Open davsclaus opened 6 years ago

davsclaus commented 6 years ago

Camel 2.21 likely will have support for referring to method name via ::.

See https://github.com/apache/camel/pull/2156

snurmine commented 6 years ago

But this is used in "bean:::<:method"> style, where bean name/class is not given as separate parameter. There seems to be no support either for "bean:." currently ?

davsclaus commented 6 years ago

Can you be more specific what you mean. But yeah the double colon is that that Camel ticket is referring to.

snurmine commented 6 years ago

If route has for example .bean("my.Bean#method"), plugin should first resolve "my.Bean" from Camel registry? Just wondering if such dynamic behaviour possible.

fharms commented 6 years ago

You can't resolve it from camel registry, because it only exist runtime when running camel. You will have to lookup the PsiElement and resolve the class and from there you can get a list the methods