Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bean method completion support :: method reference #393

Open
davsclaus opened this issue Mar 3, 2018 · 4 comments
Open

Bean method completion support :: method reference #393

davsclaus opened this issue Mar 3, 2018 · 4 comments

Comments

@davsclaus
Copy link
Collaborator

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

See
apache/camel#2156

@snurmine
Copy link
Contributor

snurmine commented Mar 5, 2018

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
Copy link
Collaborator Author

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

@snurmine
Copy link
Contributor

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
Copy link
Collaborator

fharms commented Mar 13, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants