Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Add support of external beans (non-tesler, e.g. spring, jpa, jackson and so on) injection by name from application.yml #215

Merged

Conversation

IgorNB
Copy link
Contributor

@IgorNB IgorNB commented Sep 7, 2021

  1. Problem: Tesler hardcodes bean names like "primaryDS", "teslerEntityManagerFactory" and so on.
    This leads to few problems:
    1.1) auto-created by spring-boot beans have different bean names - so tesler cannnot use them
    1.2) users cannot create beans with their own names - so tesler cannnot use them

  2. Solution:
    2.1) For non-tesler beans, e.g. for beans from external libraries (Spring, JPA, Jackson) Tesler can take bean names from application.yml (this fixes 1.1 and 1.2)
    2.2) external bean names can have convenient defaults equal to bean names created by SpringBoot to work with springboot out-of-the-box

@IgorNB IgorNB force-pushed the feature/bean-injection-by-name-from-application-yml-support branch from 454c33a to 905ffbf Compare September 8, 2021 05:33
@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

3.5% 3.5% Coverage
0.0% 0.0% Duplication

@IgorNB IgorNB merged commit 7211713 into master Sep 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant