List/Grid Tag Archives: Dependency Injection

software-development-2-logo

In today’s post-OO world, is dependency injection still relevant?

It’s 2015. Most of the new popular languages are more or less functional. The old ones, like Java, gain functional programming elements. In Scala, people are increasingly leaning ...
java-logo

Dependency Injection – Field vs Constructor vs Method

Hi, today I would like to discuss in short different ways of injecting dependencies into your classes. In general you have the following three options for injectiondirectly into ...
spring-interview-questions-answers

Dependency injection pitfalls in Spring

There are three injection variants in Spring framework:Setter-based injection Constructor-based injection Field-based injectionEach of those mechanisms has advantages and disadvantages ...
java-interview-questions-answers

Injecting domain objects instead of infrastructure components

Dependency Injection is a widely used software design pattern in Java (and many other programming languages) that is used to achieve Inversion of Control. It promotes reusability, testability, ...
java-interview-questions-answers

DI Containers are Code Polluters

While dependency injection (aka, “DI”) is a natural technique of composing objects in OOP (known long before the term was introduced by Martin Fowler), Spring IoC, Google ...
java-interview-questions-answers

Dependency Injection Options for Java

I wanted to take some time to put together a summary of some popular dependency injection (DI) frameworks for Java. This is a high-level overview of what’s available. First off, what ...
scala-logo

Dependency injection with Scala macros: auto-wiring

You can look at dependency injection as a fancy name for passing parameters to a function (or constructor arguments to a constructor). However usually, DI containers do much more than ...
java-interview-questions-answers

How I explained Dependency Injection to My Team

Recently our company started developing a new java based web application and after some evaluation process we decided to use Spring.But many of the team members are not aware of ...
google-logo

Spring vs Guice: The one critical difference that matters

Spring objects are recognized based on their namesIt doesn’t matter whether you use XML or Java config, a Spring scope is roughly like a Map<String, Object> structure. ...
spring-interview-questions-answers

Spring 3: Type safe dependency injection

Before jumping to Type Safe Dependency Injection from Spring, I would like to to discuss the way we have been doing it earlier. We have been using dependency injection by type with ...
12
Java Code Geeks and all content copyright © 2010-2015, Exelixis Media Ltd | Terms of Use | Privacy Policy | Contact
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close