Replies: 2 comments 2 replies
-
So you simply want to make this class extensible? You plan to fork the project and add your own specialized handling? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Just making it non-final probably isn't enough, because the generator will
not know about any custom implementation. So if we want to make this
extensible (which would be fine), it requires a bit more work.
…On Thu, Mar 24, 2022 at 8:58 AM Kavitha Srinivasan ***@***.***> wrote:
Makes sense, we can make that change.
—
Reply to this email directly, view it on GitHub
<#925 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2XLH5AC7ZHAMWZ2LO7ILVBSGJ3ANCNFSM5QNBXYWQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
First of all thank you for this awesome project!
We are trying to use code generation to reduce manual code for our developers. We use the generated types and data fetchers as the start of template, and then manually update those fetchers. Our implementation follow a model where all our fetchers call the same internal service. And most of our manual changes are basically copy paste from one fetcher to another. We were hoping to autogenerate this as well.
We looked at DatafetcherGenerator.kt, and were thinking of extending this in our project. It seems it is final. Our project is Java based (and I am not a Kotlin expert). Is there any way to extend this class to support our usecase? I looked at Kotlin extensions, but I have to define those methods as static in Java ? Are there other ways to extend? If not, is it possible to provide extension points (kotlin based or even gradle based)? I would appreciate any ideas here.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions