circular dependency is a relation between two or more modules which either directly or indirectly depend on each other to function properly.
Questions tagged [circular-dependency]
1693 questions
0
votes
1 answer
Circular Dependancies/ Dependency Inversion in maven based project (embarrassing, but properly really easy)
I am working on a maven managed Java project. The goal is to read tasks from a JSON file and process them. We also try to keep the whole project modular. Therefore we have a core-project and many modules.
The basic idea is, that the core defines the…

Stephanie
- 101
- 1
- 6
0
votes
1 answer
How can I define this dependency when installing a service
I'm dealing with a circular dependency w.r.t. a Windows service and its dependence upon a driver. The situation is as follows:
I wrote a Windows service in C++. This service depends on a DLL which installs a driver the first time it is loaded/used;…

paul
- 1,655
- 11
- 23
0
votes
1 answer
MySQL mutual dependent tables
I'm creating 2 tables, one called users and the other called images, each user can have one avatar which refers to an image in image table, yet each image has an author to identify who uploaded/created the image, and this author references to a user…

dulan
- 1,584
- 6
- 22
- 50
0
votes
0 answers
Can exports property be set to object instead of function?
I'm modularizing my client-side JavaScript code with Browserify.
In my "page" module, I'm trying to export an object with methods, like so:
// page.js
exports.picker = {
init: function () { ... },
getValue: function () { ... },
//…

Šime Vidas
- 182,163
- 62
- 281
- 385
0
votes
1 answer
Circular Dependency With ActiveRecord Relations in Yii2
I was using ActiveRecord models by defining relationships between them in Yii2 framework. Now I am trying to use dependency injection container with my ActiveRecord models and want to inject my dependencies. But circular dependency issue is…

Tahir
- 733
- 5
- 15
0
votes
1 answer
Resolving circularly dependant nested type specifiers
Very simple, is there any way for both A to refer to B::value_type, B refer to A::value_type?
struct B;
struct A {
using value_type = int;
value_type a;
B::value_type b;
};
struct B {
using value_type = int;
value_type b;
…
0
votes
1 answer
Angular JS object circular dependancy
I have two objects, a House and a Tenant, both described and constructed in factory methods. For the purposes of the app, each Tenant may have more than one house and each House may have more than one tenant. Thus, each object needs to keep an array…
user4020088
0
votes
1 answer
Circular Dependencies with Dependency Injection
I have a solution with the following project:
Core/Services/Services Interfaces/Infrastructure/Web UI
In the Infrastructure project I have the following folders:
-Data
-IoC
-Logging
The data folder in the Infrastructure project contains a DbContext…

Alex808
- 109
- 9
0
votes
1 answer
Circular Dependency, Recursive Classes
I have a base class PlanItem which all other subclasses extend.
An Objective extends PlanItem.
A Strategy extends PlanItem.
A Tactic extends PlanItem.
A Task extends PlanItem.
The catch:
An Objective has a list of Strategy objects. Call…

Toni_Entranced
- 969
- 2
- 12
- 29
0
votes
1 answer
Dynamically exclude target file from prerequisites to avoid circular dependency
I am attempting to build a target file (with GNU make) if any of its surrounding files (files of the same type in the same directory) have changed. It seems simple enough but a solution has eluded me. Here is the key line of this makefile:
dir/%.Rd:…

Stu Field
- 255
- 2
- 10
0
votes
1 answer
How to Resolve Circular Dependencies that have their own Dependencies?
Not sure if the title makes sense, but it's the best I could come up with so let me explain. I'm refactoring, mostly rewriting and simplifying, a project in my solution which contains a bunch of "Services" that basically contain my business logic.…

Gup3rSuR4c
- 9,145
- 10
- 68
- 126
0
votes
1 answer
C++ Using Class A as a parameter for member function of Class B with Class B being a member of Class A
Basically, I have two classes under two different header files. ToolBar and NewMenu (I will use the actual class names for my better understanding) Both of these classes are under namespace map. Now I have the class NewMenu declared inside of the…

Uulamock
- 330
- 1
- 3
- 15
0
votes
2 answers
C++ - Best convention to resolve templated classes' circular dependencies in header files?
I am writing my own implementation of a templated Graph class in C++ and so I am also implementing templated Vertex and Edge classes. Thus, the implementations have to be inside their respective header file and not inside separate .cpp files. (The…

pdpiech
- 43
- 1
- 4
0
votes
2 answers
How to know which will be the id generated by hibernate (Circular dependency)
I've created an Object A {id: long (AutIncrement), name:String} , which I'll saveOrupdate with hibernate.
I want to know, before A being save, which will be the generated Id. I need it , because I need to set properties in A that depends on …

user1680680
- 213
- 2
- 9
0
votes
2 answers
Iterator Pattern - Circular Reference
Is there anyway to avoid this circular reference? I cant use foward declaration, because I am accessing methods of PositionBlock inside PositionBlockIterator...
I know that i can create an interface to PositionBlock, and then use it inside…

p.magalhaes
- 7,595
- 10
- 53
- 108