Enabling Non-Spring Libraries to Access Spring Boot Components: Difference between revisions
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
=Approach= | =Approach= | ||
The Spring Boot runtime should implement a Spring component whose job is to configure a dedicated class in the dependency package. This solution assumes that the dependency package "cooperates" and we can write code in it. The dedicated class in the dependency package is conventionally named | The Spring Boot runtime should implement a Spring component whose job is to configure a dedicated class in the dependency package. This solution assumes that the dependency package "cooperates" and we can write code in it. The dedicated class in the dependency package is conventionally named SpringApplicationContextAccess. |
Revision as of 17:39, 2 November 2018
Internal
Overview
This article describes a possible approach to give non-Spring libraries access to Spring Boot runtime components.
Playground Example
Approach
The Spring Boot runtime should implement a Spring component whose job is to configure a dedicated class in the dependency package. This solution assumes that the dependency package "cooperates" and we can write code in it. The dedicated class in the dependency package is conventionally named SpringApplicationContextAccess.