Closed calixtus closed 1 month ago
This is an alternative to use Google's Dagger , which was tried out 2.5 years ago at https://github.com/koppor/jabref/pull/518
We can use this PR to do a proper renaming:
Please fix the name "PreferenceService".
Reason:
Service
is a singleton providing things (see https://javaee.github.io/hk2/apidocs/org/jvnet/hk2/annotations/Service.html) (Currently our JabRefPreferences)Contract
is a thing what a service is providing (see https://javaee.github.io/hk2/apidocs/org/jvnet/hk2/annotations/Contract.html) (currently our `PreferencesService)PreferencesService
is the contract fulfilled by JabRefPreferences
. -- It should be Preferences
onlyI think, this is the right place to provide the link to some naming hints and usages https://github.com/JabRef/jabref/pull/6103#issuecomment-1742103784
We can use this PR to do a proper renaming:
Please swap the names "PreferenceService" and "Preferences".
Can we postpone this to a follow up PR? I believe this one is on the edge of what can be understood in one PR. Thats why I called the PR DI-1 😄 I just wanted to finally get rid of Globals and prepare the next steps by unifying the access and the injection method.
Follow-up at https://github.com/JabRef/jabref/pull/11342
We can use this PR to do a proper renaming: Please swap the names "PreferenceService" and "Preferences".
Can we postpone this to a follow up PR?
Please directly after merge as DI-2.
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)