spring-projects / spring-projects/spring-tools

add support for `initMethod` and `destroyMethod` attributes of `@Bean`

Open
#1,311 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

for: eclipse for: vscode theme: code completion type: enhancement
Dominant language
Java
Stars
983
Forks
240
Avg merge
7d 1h
Merged PRs (30d)
7

Description

Add support for initMethod and destroyMethod attributes of the @Bean annotation with:

  • auto-completion showing method proposals (only with signatures that would fit; void no-arg methods, including those that are inherited from supertypes)
  • go to definition, allowing the user to jump to the referenced method declaration

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files, tests, or entry points. Start by locating @Bean attribute handling in the Java/Spring tooling, then trace the completion and go-to-definition paths; done means initMethod and destroyMethod offer only compatible void no-argument methods, including inherited ones, and link to their declarations.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
devtools, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.