The Artima Developer Community
Sponsored Link

Java Buzz Forum
Is Getter DI A Good Idea?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
justin cater

Posts: 19616
Nickname: justin78
Registered: Mar, 2011

Justin Cater is executive editor at Java Code Geeks
Is Getter DI A Good Idea? Posted: Jun 2, 2015 6:07 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by justin cater.
Original Post: Is Getter DI A Good Idea?
Feed Title: Java Code Geeks
Feed URL: http://feeds.feedburner.com/JavaCodeGeeks
Feed Description: Java 2 Java Developers Resource Center
Latest Java Buzz Posts
Latest Java Buzz Posts by justin cater
Latest Posts From Java Code Geeks

Advertisement

Sometimes, you may hear about dependency injection done via a getter method, which subclasses override or mock frameworks fake for testing. It allows the class to have a set dependency that is actually hard coded, but can be “injected” if need be. I’ve written before about the idea of what I will call “firm-coded” dependencies ...

 

Read: Is Getter DI A Good Idea?

Topic: May 2015 New Java Performance Tips Previous Topic   Next Topic Topic: Neo4j: The foul revenge graph

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use