Enabling Non-Spring Libraries to Access Spring Boot Components: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Spring Boot =Overview= This article describes a possible approach to give non-Spring libraries access to Spring Boot runtime component...") |
|||
Line 12: | Line 12: | ||
=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 SpringApplicatioinContextAccess. |
Revision as of 17:38, 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 SpringApplicatioinContextAccess.