Dear List,
I am having a architectural problem and would like to ask people on this
list for some input.
The project that I am working on uses several models, we call them
proxies,i.e RemoteProxy, GameProxy etc... They all extends a base class
Proxy and implement an IProxy interface. The chances are in the future
more proxies will be added. The person that build the system gave every
Proxy an getInfo Method, the method looks like this
getInfo(sIdentifier:String) : Object. Where every return object needs
to be typecast to the expected return type.
The reason of this function is that custom methods can be called from a
proxy. This creates flexibility but comes with a price. The compiler
can't check it. I can understand the reasons why this method is
implementated, not having a zillion extended interfaces, not having to
add import etc. But I would like to know if some solution excists that
deals with this in an elegant way. I read about the Bridge pattern, but
I am not sure if this will help me?
Thank you.
Jiri
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders