All Questions

129
votes
6answers
110550 views

Passing Parameters JavaFX FXML

How can I pass parameters to a secondary window in javafx? Is there a way to communicate with the corresponding controller? For example: The user chooses a customer from a TableView and a new window ...
2406
votes
30answers
583231 views

What is dependency injection?

There have been several questions already posted with specific questions about dependency injection, such as when to use it and what frameworks are there for it. However, What is dependency injection...
3059
votes
30answers
718517 views

AngularJS: Service vs provider vs factory

What are the differences between a Service, Provider and Factory in AngularJS?
94
votes
5answers
18505 views

Ioc/DI - Why do I have to reference all layers/assemblies in entry application?

(Related to this question, EF4: Why does proxy creation have to be enabled when lazy loading is enabled?). I'm new to DI so bear with me... I understand that the container is in charge of instantiati...
135
votes
5answers
56269 views

Is there a pattern for initializing objects created via a DI container

I am trying to get Unity to manage the creation of my objects and I want to have some initialization parameters that are not known until run-time: At the moment the only way I could think of the way ...
25
votes
3answers
21419 views

Spring JSF integration: how to inject a Spring component/service in JSF managed bean?

I understand that a managed bean works like a controller, because your only task is "link" the View Layer with Model. To use a bean as a managed bean I must declare @ManagedBeanannotation, doing tha...
321
votes
9answers
72095 views

One DbContext per web request... why?

I have been reading a lot of articles explaining how to set up Entity Framework's DbContext so that only one is created and used per HTTP web request using various DI frameworks. Why is this a good i...
209
votes
4answers
32085 views

Dependency Inject (DI) "friendly" library

I'm pondering the design of a C# library, that will have several different high level functions. Of course, those high-level functions will be implemented using the SOLID class design principles as mu...
70
votes
2answers
7688 views

Why not use an IoC container to resolve dependencies for entities/business objects?

I understand the concept behind DI, but I'm just learning what different IoC containers can do. It seems that most people advocate using IoC containers to wire up stateless services, but what about u...
84
votes
6answers
65247 views

Dependency injection with Jersey 2.0

Starting from scratch without any previous Jersey 1.x knowledge, I'm having a hard time understanding how to setup dependency injection in my Jersey 2.0 project. I also understand that HK2 is avail...

Previous Next