Is it possible to create named beans that can then be dereferenced/deleted once initialization is complete? I have searched various places and can find no way to accomplish this, either through xml configuration or code.
The issue I am running into is that several beans require an object tree that is built from loading a large set of data. The entirety of this object tree are not needed post-initialization in one configuration of our system and consume a significant amount of memory. It would however be overly expensive to have each bean load this data separately.
The issue I am running into is that several beans require an object tree that is built from loading a large set of data. The entirety of this object tree are not needed post-initialization in one configuration of our system and consume a significant amount of memory. It would however be overly expensive to have each bean load this data separately.
Comment