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

vscode function declarations #18

Closed
dsyer opened this issue Nov 16, 2017 · 3 comments
Closed

vscode function declarations #18

dsyer opened this issue Nov 16, 2017 · 3 comments
Milestone

Comments

@dsyer
Copy link
Member

dsyer commented Nov 16, 2017

I like the CTRL-T > feature, but it only seems to work for @Beans (not for Functions in a @FunctionScan or @ComponentScan).

@martinlippert
Copy link
Member

Functions in a @FunctionScanor @ComponentScan are identified as such if there is a class that implements java.util.function.Function, java.util.function.Supplier, or java.util.function.Consumer, right?

That sounds quite straight forward to realize for the symbol infrastructure.

Another case: Could it also be a class that implements a subtype of those function types? (so I define my own interface that extends j.u.f.Function and then have a class that implements my own interface). And if so, where should the symbol point to? The implementing class or my interface?

@dsyer
Copy link
Member Author

dsyer commented Nov 20, 2017

right?

Correct.

The implementing class or my interface?

Dunno. The implementing class sounds more useful to me.

@spring-projects-issues
Copy link

(comment in Pivotal Tracker added by Martin Lippert:)

This is implemented now and available from the nightly CI builds. Specific symbols for function beans are now generated for classes that implement Function, Supplier, or Consumer interfaces, either directly or indirectly.

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