swruch
Aug 23rd, 2004, 03:23 PM
Do BeanFactories have explicit lifecycles? The documentation
(1.1 RC2) on Bean Lifecycles in Section 3.4.1.2 says that
"Implementing the ...DisposableBean interface allows a bean to
get a callback when the BeanFactory containing it is destroyed."
I'm looking for something like BeanFactory.shutdown() / stop() / dispose()
or some other way to take the BeanFactory down so that it can
be reconfigured and restarted. I'm looking through the APIs, but
I'm not finding anything.
I figure I must be missing something here as other frameworks /
containers have some notion of a lifecycle for the container.
How does this work in Spring?
(1.1 RC2) on Bean Lifecycles in Section 3.4.1.2 says that
"Implementing the ...DisposableBean interface allows a bean to
get a callback when the BeanFactory containing it is destroyed."
I'm looking for something like BeanFactory.shutdown() / stop() / dispose()
or some other way to take the BeanFactory down so that it can
be reconfigured and restarted. I'm looking through the APIs, but
I'm not finding anything.
I figure I must be missing something here as other frameworks /
containers have some notion of a lifecycle for the container.
How does this work in Spring?