4 ms·
Just wrap it in an IndirectionManager and instantiate that via an IndirectionManagerFactory and you're good to go. :)
by rpeden 8y ago
Just wrap it in an IndirectionManager and instantiate that via an IndirectionManagerFactory and you're good to go. :)
- toyg 8y agoYou forget the IndirectionPolicy interface...
- rpeden 8y agoFunny you mention that. I was considering amending my post to include IndirectionStrategy. But I was worried about opening a Pandora's box of indirection design patterns. I mean, who are we to assume that you want to invoke all this indirection now? Better to wrap it all in an IndirectionCommand so you can invoke it whenever you want. And there's no need to keep too many copies of identical IndirectionCommand instances around, so you'll also want an IndirectionCommandCache class, which will of course need an IndirectionCommandCacheStrategy because you don't want to just assume you know how and for how long people will want to cache those commands.