Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jmolecules-archunit : layered architecture with DI #75

Open
wangmenghw opened this issue Sep 28, 2021 · 0 comments
Open

jmolecules-archunit : layered architecture with DI #75

wangmenghw opened this issue Sep 28, 2021 · 0 comments

Comments

@wangmenghw
Copy link

The module covers classical Layered Architecture implementation pattern, in which Interface, Application and Domain layers all depend on Infrastructure layer.

Yet nowadays often Layered Architecture implementations follow Dependency Inversion principle, abstract appropriate interfaces in Application and Domain layer and put concrete technology-specific implementations in Infrastructure layer - this way the Domain layer is at the core (rather than Infrastructure) and that fits more to DDD.

In this setup, the dependency check rules are inversed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant