Thread: Dependency Injection (+ test driven coding)

Results 1 to 4 of 4
  1. #1 Dependency Injection (+ test driven coding) 
    Super Donator

    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    23
    Posts
    4,564
    Thanks given
    1,594
    Thanks received
    1,474
    Rep Power
    1222
    Recently, I've been searching around and learning about multiple different dependency injection frameworks. I've used [Only registered and activated users can see links. ] mostly and slightly experimented with [Only registered and activated users can see links. ] ().

    Which frameworks do you prefer and why? I've been recommended Google Guice frequently but I never got around to using it.
    Personally, koin seems best, especially in test driven coding instances, with kodein being a close secondary. Although this may just be my familiarity!
    Last edited by Tyluur; 01-14-2021 at 06:40 AM.

    [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] (official dog of rune-server)
    -------------------
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Registered Member
    JayArrowz's Avatar
    Join Date
    Sep 2008
    Posts
    37
    Thanks given
    35
    Thanks received
    43
    Rep Power
    303
    [Only registered and activated users can see links. ]
    This is a big feature that is missing when I was looking into Koin a while back, it will not close the closable automatically once the scope is closed or the container is disposed.

    Currently its done like this by hooking into their onClose method:
    [Only registered and activated users can see links. ]

    I like Spring DI even though it bloats my jar
    Reply With Quote  
     

  3. #3  
    Super Donator

    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    23
    Posts
    4,564
    Thanks given
    1,594
    Thanks received
    1,474
    Rep Power
    1222
    Quote Originally Posted by JayArrowz View Post
    [Only registered and activated users can see links. ]
    This is a big feature that is missing when I was looking into Koin a while back, it will not close the closable automatically once the scope is closed or the container is disposed.

    Currently its done like this by hooking into their onClose method:
    [Only registered and activated users can see links. ]

    I like Spring DI even though it bloats my jar
    I wasn't aware of that issue ty. Imo it's not considerable enough not to use it over any other framework.
    Wdym it bloats your jar?

    [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] (official dog of rune-server)
    -------------------
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member
    JayArrowz's Avatar
    Join Date
    Sep 2008
    Posts
    37
    Thanks given
    35
    Thanks received
    43
    Rep Power
    303
    Quote Originally Posted by Tyluur View Post
    I wasn't aware of that issue ty. Imo it's not considerable enough not to use it over any other framework.
    Wdym it bloats your jar?
    Makes it larger cause of all the deps pulled in by spring.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 2
    Last Post: 04-14-2014, 07:50 AM
  2. [508]Good server base? (to test coding)
    By §ympath„ in forum Requests
    Replies: 3
    Last Post: 12-03-2009, 04:57 AM
  3. Code for your forums
    By Big J in forum Chat
    Replies: 4
    Last Post: 05-10-2008, 09:05 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •