RE: [picocontainer-dev] Lifecycle usage question

"Michael Rimov" <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Organization Centerline Computers, Inc.
Message-ID <029601c7bc19$ff5a70f0$fe0f52d0$@com>
>I could refactor to that, but then lifecycle will only work with Caching or Pooling behavior.

>So the question - does anyone have any use for Lifecycle on components that are not >cached/pooled ?

Well, I can think of a class of components that would need lifecycle without being cached:

Say we have a component that when the application starts up checks the integrity of database tables/data files/whatever, and or other housekeeping that would be appropriate.

But the point of the component would be to instantiate/start and then be garbage collected -- since it has done its housekeeping, I we wouldn't want it to stay in-memory.

The same would go for components that do one-time cleanup during container shutdown/disposal.

							-Mike





---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.