Can the CrossCutting layer recognize my Domain layer?

1

My question is quite simple.

Can my CrossCutting layer know my Domain layer? since the Repository layer knows that it is both inside the Infrastructure Layer.

I'm sorry for the question, as I'm still new to the concept of DDD, I'm using the same model I saw in video by Eduardo Pires. Thanks

    
asked by anonymous 15.12.2017 / 23:38

1 answer

0

Yes. Let's understand the concept.

Cross-cutting is an editing technique most often used in movies to establish actions occurring at the same time in two different locations. In a cut, the camera goes from one action to another, which may suggest the simultaneity of the two scenes - but this is not always the case.

In computer science, cross-cutting concerns are aspects of a program that affect other concerns. These concerns often can not be clearly broken down from the rest of the system, both in design and implementation, and can result in scattering (code duplication), winding (significant dependencies between systems), or both.

In short, the Cross-cutting layer is heavily used for Dependency Injection (IOC) modules, and these modules will need to know about your domain and other layers to do the IOC.

In his video example of Eduardo Pires he uses it for this.

The DDD says that the development is all geared towards the Domain, ie the other layers can see the domain, but not the reverse.

    
19.12.2017 / 12:36