RE: DI in flink

2023-02-14 Thread Schwalbe Matthias
up in a DI way. If I’m not mistaken, Flink uses factories for this. Sincere greetings Thias From: Yashoda Krishna T Sent: Wednesday, February 15, 2023 6:19 AM To: Austin Cawley-Edwards Cc: user Subject: Re: DI in flink Thanks Austin. I can make use of Rich functions to solve my problem

Re: DI in flink

2023-02-14 Thread Yashoda Krishna T
Thanks Austin. I can make use of Rich functions to solve my problem. Thanks Yashoda On Wed, Feb 15, 2023 at 12:42 AM Austin Cawley-Edwards < austin.caw...@gmail.com> wrote: > (note: please keep user@flink.apache.org included in replies) > > Ah, I see. Then no, this is not provided by Flink.

Re: DI in flink

2023-02-14 Thread Austin Cawley-Edwards
(note: please keep user@flink.apache.org included in replies) Ah, I see. Then no, this is not provided by Flink. When I've used dependency inject with Flink in the past, I instantiated everything in the `open()` method of the Flink Rich* classes. Could you solve this by having a common base Sink

Re: DI in flink

2023-02-14 Thread Austin Cawley-Edwards
What would be the benefits and features over what can be done in user land? On Tue, Feb 14, 2023 at 10:41 Yashoda Krishna T wrote: > Hi Austin > > Yes this can be done in Usrr land. > Can we do it in flink land too? > > Thanks > Yashoda > > On Tue, 14 Feb 2023, 9:05 pm Austin Cawley-Edwards, <

Re: DI in flink

2023-02-14 Thread Austin Cawley-Edwards
Hey Yashoda, This can be done in userland (eg with Dagger ) unless you're wanting Flink to do something in addition? Best, Austin On Tue, Feb 14, 2023 at 10:01 AM Yashoda Krishna T < yashoda.kris...@unbxd.com> wrote: > Does flink support dependency injection in flink task