Hi Tom, Because I would only like to delete those that are not in use... just like Garbage Collection. If I just removed every reference I could not achieve identity allocation ( which is a requirement ).
To clarify: Suppose you are coding an email user interface, like GMail, where there are potentially thousands of distincts messages. You are modeling messages using a value object ( EmailVO ) that holds substantial data ( subject, sender, text, etc ). Now, for some reason, you MUST make sure that there is one EmailVO instance exists per-email at a given moment in time ( I repeat, this is an important requirement in my case ). See... I need a factory with a cache that knows how to return the singleton copy of each EmailVO ( based on a hash of the email ID or something like that ) BUT that is smart enough to allow for GC. While some of these emails will surface constantly at the user interface ( while reading a thread ) others will only be used for mere seconds and will never appear again. It makes sense to remove the latter from memory... specially when we are approaching six figures in magnitude. Thanks, Aldo On Nov 29, 2007 8:33 AM, Tom Chiverton <[EMAIL PROTECTED]> wrote: > On Wednesday 28 Nov 2007, Aldo Bucchi wrote: > > cummulative distinct persons, but each one is used only for a couple > > of minutes and won't occur again. > > Why not delete it all together then ? > > -- > Tom Chiverton > Helping to ambassadorially develop clicks-and-mortar clusters > on: http://thefalken.livejournal.com > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and > Wales under registered number OC307980 whose registered office address is at > St James's Court Brown Street Manchester M2 2JF. A list of members is > available for inspection at the registered office. Any reference to a > partner in relation to Halliwells LLP means a member of Halliwells LLP. > Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may > be confidential or legally privileged. If you are not the addressee you must > not read it and must not use any information contained in nor copy it nor > inform any person other than Halliwells LLP or the addressee of its existence > or contents. If you have received this email in error please delete it and > notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > -- :::: Aldo Bucchi :::: +1 858 539 6986 +56 9 8429 8300 +56 9 7623 8653 skype:aldo.bucchi

