[osflash] Extend IConnection conn
Lee Loftiss
kleelof at yahoo.com
Fri Apr 23 20:32:15 PDT 2010
Hello,
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.
take care,
lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/osflash_osflash.org/attachments/20100423/a8f75d40/attachment.html>
More information about the osflash
mailing list