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

Provide access to the return type in MethodMetadata [SPR-13024] #17615

Closed
spring-issuemaster opened this issue May 13, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented May 13, 2015

Andy Wilkinson opened SPR-13024 and commented

We'd like to enhance Spring Boot's auto-configuration report to include the return type of any @Bean methods that have been conditionally included or excluded. We can't do so at the moment as MethodMetadata doesn't make that information available.

I'm happy to contribute a PR if you agree with the change and can offer some guidance on the implementation. The main decision that I can see is whether or not it's ok to change the MethodMetadata interface, or if the return type should only be exposed on the implementations (and we'd use a cast in Boot to access it).


Reference URL: spring-projects/spring-boot#2208

Issue Links:

  • #15547 @Bean on Java 8 default methods in interfaces

Referenced from: commits 1e7d954

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented May 18, 2015

Juergen Hoeller commented

No problem, as of 4.2, we've got a getReturnTypeName() next to the already added isStatic() on MethodMetadata...

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.