I took a look at someone's code here and I am trying to understand its architecture:
We are looking at a classic enterprise architecture using Spring core for dependency injection.
I understand the following enterprise roles are in place:
dao: UserDao, UserDaoWithMap
However, I don't understand what enterprise role the 'Users' class fulfills. I don't see where in the architecture it fits - it looks to me like some sort of helper class. Though, it does look like it has business value because it uses the UserDao.
Does anyone see any standard pattern here? Does the 'Users' class have an enterprise purpose or is it just some custom helper class?
It just looks like a Facade around your data access object. It adapts the UserDao for use by FavoriteService, so you could say it's in the same layer as the FavoriteService class. Think of it as a service to the FavoriteService.
posted 5 years ago
Indeed, Mr. van Hulst, that seems to be it. Thank you.
Bring out your dead! Or a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop