Code Design Decision – Protecting Delegate Access?

David Pitt Architecture, Consulting, Problem Solving Leave a Comment

I ran into a design decision on one my engagements. Consider an abstract class implementation that references another (delegate) object. Convenience methods are in the primary class that are called by concrete classes. This pattern can also exist in a concrete that delegates to another implementation. This is a common idiom applied to the service/dao pattern, where a DAO delegate would never …