How much functionality is there in the Spring diagram for Java config?

Consider the following Java config (from Spring in Action)

@Configuration
@EnableTransactionManagement
@ComponentScan
public class RepositoryTestConfig {
    @Bean
    public DataSource dataSource() {...}
    
    @Bean
    public SessionFactory sessionFactory(DataSource dataSource) {...}
    
    @Bean
    public PlatformTransactionManager platformTransactionManager(SessionFactory sessionFactory) {...}
}


When I invoke the Spring Dependencies diagram I get the following:

spring-dependencies-diagram.png

IDEA sees that the sessionFactory is injected in the repositories but misses the dependencies from the Java config above. sessionFactory depends on dataSource and platformTransactionManager depends on sessionFactory.

What functionality is there in the diagram generated from a JavaConfig? The documentation doesn't really go into the details of what is or isn't supported. What I see now doesn't look very helpful for a big project.

Is there any new functionality in the pipeline for version 15 (I'm on 14.1.4 now)?

2 comments
Comment actions Permalink

Did you configure "RepositoryTestConfig" in your Spring facet as configuration file? Java config should be working AFAIU. If it still fails, please create an issue https://youtrack.jetbrains.com/issues/IDEA
and attach sample project/link to sources. Thanks!


0
Comment actions Permalink

Yes, the Spring facet was configured properly. I've created a minimal example with this issue and submitted https://youtrack.jetbrains.com/issue/IDEA-144063

0

Please sign in to leave a comment.