Sunday, 15 September 2013

How to represent service, registry and dao service without IoC container?

How to represent service, registry and dao service without IoC container?

Im writing and app in c++, and have layers like:
some points in app --> service --> registry --> dao
Without IoC container I dont really know how to represent them.
static is not an option, because service and dao layers use interfaces and
AFAIK statics are not a good solution
singletons are bad either
Im left with creating an instance of service every time I need it. Is that
really only availible option?

No comments:

Post a Comment