get_di_registrations
Scan a Java project for Spring dependency injection registrations, including components, configurations, beans, and injection points. Requires load_project first.
Instructions
Find all dependency injection registrations in the project.
USAGE: get_di_registrations() OUTPUT: Components, configurations, beans, and injection points
Scans for:
Spring components: @Component, @Service, @Repository, @Controller, @RestController
Configuration: @Configuration
Bean definitions: @Bean
Injection points: @Autowired, @Inject (javax and jakarta)
Returns empty categories for non-Spring projects (does not error).
maxResults caps the matches listed for each annotation type (default 200). Each summary count is the exact number of registrations in its category; meta.totalCount counts every registration, meta.returnedCount those listed, and meta.truncated is true when an annotation type has more matches than maxResults. potentialMatches lists, the first maxResults of each annotation type, the annotations JDT could not confirm, each with the annotation it names; none is a registration.
potentialMatches, present only when there are any, holds the places JDT's search reports as possible matches but cannot confirm, because a type or name there does not resolve (a missing dependency or a compile error): count is their exact number, and locations lists them, as many as the results it stands beside may list. They are never counted or listed as results.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxResults | No | Maximum results per annotation type (default 200) |