Most voted "ioc" questions
Inversion of control (Inversion of Control or Ioc) is the name given to the development pattern of computer programs where the sequence (control) of methods calls is reversed relative to traditional programming, i.e., it is not determined directly by the programmer. If the question is not about "Control Inversion", do not use this tag, even if you are using "Control Inversion" in your project.
Learn more…19 questions
Sort by count of
-
14
votes2
answers481
viewsWhat are the Types of Ioc?
Reading the Book "Pro Spring Security" by Carlo Scarioni of Editora Apress, 2013 edition, I came across the following text that left me confused about Ioc: The basic idea of DI, a type of Inversion…
-
10
votes1
answer1562
viewsUnit Of Work + Ioc + Idisposable
I’m putting together a project that I use Uow to facilitate the issue of transactions. In some scenarios, I use several repositories, persisting the data in memory to save at once in the BD using a…
-
8
votes1
answer809
viewsSimple Injector + Uow + DDD + Multiple Contexts + Entity Framework
I need to know how to apply Ioc to two contexts. The scenario is as follows: I have a Layer called Core (allocates classes that I can reuse in other layers), where I put the interface of Idbcontext,…
-
7
votes1
answer239
viewsProject Dependency Injection . Net Web API 2
I am involved in a project that is developing an application .Net Web API 2 Fw 4.51 (with a view to future migration to .Net Core, what is an 'aggravating'), Fluent NHibernate e PostgreSQL, and we…
.net asp.net-web-api dependency-injection asp.net-core iocasked 8 years, 2 months ago Carlos Felippe Vernizze 71 -
5
votes1
answer85
viewsWhat is the Java equivalent of this Ruby lambda?
In his text on Inversion of Control, Fowler uses as an example an excerpt of code in Ruby that promotes the said principle to "invoke a bind method over the text input field that passes an event…
-
4
votes1
answer147
viewsInjection of dependencies into functions and not classes. Is it "wrong"?
It is not new that the concept of dependency injection is almost directly related to classes. Tell me "dependency injection" and I can imagine the following: // services/UserService.ts export…
typescript pattern-design encoding-style dependency-injection iocasked 5 years, 4 months ago Luiz Felipe 32,886 -
3
votes2
answers262
viewsHow to use Simpleinjector in a multi-layer project?
Imagine the classic architecture: Consoleapplication (Frontend) --> Business Layer (BLL) --> Data Access Layer (DAL) That is, Frontend references BLL that references DAL. See that Frontend…
c# software-architecture dependency-injection ioc simple-injectorasked 6 years, 10 months ago Ewerton 194 -
2
votes1
answer66
viewsHow to register dependencies with Windsor that are in different layers of the application?
How to register dependencies with Windsor that are in different layers of the application? I don’t want to keep referencing all layers of the application in the presentation layer as most do around.…
-
2
votes3
answers198
viewsController with Repository, Ioc and DI
I’m trying to implement the recording of my views, Usuario repository in my controller, even using dependency injection examples, because in my user’s repository constructor it expects to receive an…
-
2
votes1
answer564
viewsAutowired spring boot in Jframe
In the development of a Spring Boot application for Desktop, it is possible to inject a @Repository in a class JFrame? If yes how? Some alternative? Code examples: @Repository public interface…
-
2
votes1
answer663
viewsCheck if the driver has a public constructor without parameters
Someone helps me, I am creating a project and in the dependency injection part I am having the following error when I make a Postman request in my Api: An error occurred when trying to create a…
-
1
votes1
answer70
viewsAutofac. Dispose or not
There is a difference in performance or best practice between the two examples? Example1: private void Teste() { using (var scope = Container.BeginLifetimeScope()) {…
-
1
votes2
answers291
viewsProblem when performing delegate bind in ninject
I am developing an application with ninject for Ioc and Entity framework, but when I perform the bind with delegate it gives this error: <Message>An error has occurred.</Message>…
-
1
votes0
answers154
viewsThe number of generic arguments provided is not equal to the aridity of the generic type definition. Parameter name: instantiation
I am having a problem developing an application in Asp.net MVC with IOC, Automapper and all other screens work perfectly, just not that of Drivers. couldn’t identify the mistake, could you help me?…
-
1
votes0
answers172
viewsJSF + DDD : Is it correct to use the domain entities within the bean Managed?
1 - In the DDD it is correct to let the domain objects be fed by the JSF through EL ? // classe da camada de dominio public class Cliente { private String nome; // getters e setters; } // bean…
-
1
votes1
answer392
viewsSimpleinjector: The Configuration is invalid. The type is directly or Indirectly Depending on itself
I have the following problem when applying the Simpleinjector container in a simple application: The configuration is invalid. The type BookAppService is directly or indirectly depending on itself.…
c# asp.net-mvc dependency-injection ioc simple-injectorasked 6 years, 7 months ago Matheus Daumas 37 -
0
votes0
answers253
viewsNinject - System.Missingmethodexception: No constructor without parameters has been defined for this object
I’m in the wrong; No constructor without parameters has been defined for this object. Description: An untreated exception occurred during the execution of current web request. Examine stack tracking…
-
0
votes0
answers158
viewsInstantiate Unit of Work with only 1 context. EF 6 Simple Injector
In a simple application, I have the code below that works up to a certain point, very well. However, for each Service that is instantiated to the Form, a new working unit is created, consequently a…
-
-2
votes2
answers117
viewsAutowired instance with null value
Problem I am working on a Spring Boot project that depends on other project, these projects are my entities, services and the like. I use the note Autowired to inject my dependencies, example:…