-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Introduce new pattern to avoid duplication of core services to extensions #1039
Conversation
5155cbf
to
624670e
Compare
624670e
to
97c7bb4
Compare
I think this is fine. But I still wanted to @erwinmombay to comment on how easy it'd be to just do it at compilation time? |
@dvoytenko can you explain again what we needed to do? just creating the installer code in a separate file? |
Explicit might be better than implicit (through compiler magic) here. |
Normally, the service code looks like this:
We'd like to turn this to the following when compiling an extension:
In short, we throw away all implementation details and keep the Malte is suggesting we do this manually, but putting separate |
If we use magic the important part is to also remove all the imports! |
Well, I'm leaning toward the manual solution as well. |
right, so if we wanted to do it magically, the annotation would actually have to be on the
|
/** | ||
* Gets service implemented in service/history-impl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Returns service"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
as far as implementation, that would be really easy to do. just depends on how comfortable we are with magic annotations 😸 |
97c7bb4
to
24e21f5
Compare
LGTM |
No description provided.