Have a look at the following situation:
Another example:
I used Generics to get around this flaw:
The example above therefore could be handled as follows:
Used this Generic Chaining Pattern while developing an abstraction layer for database access in an old fashioned jdbc environment. It looked like this:
No comments:
Post a Comment