No complaints here.  It's the right thing todo given the scenarios you
presented.

-N




                                                                       
             Bryant Luk                                                
             <bryant....@gmail                                         
             .com>                                                      To
                                       [email protected]   
             06/06/2010 07:19                                           cc
             PM                                                        
                                                                   Subject
                                       Adding release callbacks to     
             Please respond to         ObjectFactory                   
             wink-...@incubato                                         
               r.apache.org                                            
                                                                       
                                                                       
                                                                       
                                                                       




Hi,

I'm adding some new methods to the internal ObjectFactory
(releaseInstance() and releaseAll()) which are intended to serve as
callbacks for lifecycle management of objects that were "created" from
ObjectFactory.

releaseInstance() releases a specific instance and I intend to use
this mostly for objects created during the request cycle.

releaseAll() releases all known objects created by the ObjectFactory.
I intend to use this mainly for releasing singletons at the end of the
application.

The above should help for callbacks (@PreDestroy) and JCDI and provide
a more complete lifecycle management for potentially other uses.

If anyone has any issue with this, please reply.

Thanks.

Reply via email to