-
May 26th, 2010, 11:11 AM
#1
a solution/design pattern for approching meny devices
a lot of logic objects need to approch to meny devices.
the solution today: interface class to implemented in a single class containg all the dfevices.
Problem: the interface becomes a garbage collector.
question: each logic class needs to approch to only few devices.
the logic class need to stay encapsulated from devices.
there are devices whice serve several logic classes
Do someone have a solution/design pattern to this problem ?
-
May 28th, 2010, 12:47 AM
#2
Re: a solution/design pattern for approching meny devices
Originally Posted by zevikbe
Do someone have a solution/design pattern to this problem ?
If the interface "becomes a garbage collector", why don't you just require logic objects to call a dispose method when they're finished with a device? In that way the interface can remove devices when they're no longer in use.
Last edited by nuzzle; May 28th, 2010 at 03:55 AM.
-
June 2nd, 2010, 07:02 AM
#3
Re: a solution/design pattern for approching meny devices
the problem is with the interface not with the number of devices
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|