[osflash] Extend IConnection conn
kleelof at yahoo.com
Fri Apr 23 20:32:15 PDT 2010
I'm new to JAVA, so perhaps there is a better solution to my problem. Here it is:
Right now, when a client connects, they present an ID that is compared to a DB. Once they have have been validated, I create an object(WGT) for the user that handles things like checking their time and checking a DB for email messages.
Now, the problem is I have to create 2 arrays. One to hold the WGT's by ID so the server can access them by ID and one to hold the IConnection conn object so the server can access the clients WGT when some action is performed on this Iconnection Object.
In other languages, I could just take the IConection conn object and recast it into my own class which extended the original class. But I can't here, because IConnection is an interface, not a Class.
I realize the problem may just be my approach.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osflash