Android-CleanArchitecture icon indicating copy to clipboard operation
Android-CleanArchitecture copied to clipboard

Q: Should we make DataMapper in presentation layer singleton or contains static functions?

Open tanthanh289 opened this issue 9 years ago • 0 comments

I'm new to this Android CleanArchitecture. Also have new knowledge about DI and Android related issues.

As I see, DataMapper classes in data layer are singletons. I want to know why is DataMapper classes in presentation layer PerActivity, not Singleton? how about using static functions in Mappers?

Thanks,

tanthanh289 avatar Jan 18 '17 14:01 tanthanh289