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.
