On Saturday, August 23, 2003, at 05:09 PM, jboynes@apache.org wrote:
> public final void addInterceptor(Interceptor interceptor) {
> - if (getStateInstance() != State.STOPPED) {
> - throw new IllegalStateException("Interceptors cannot be
> added unless the Container is stopped");
> + if (getStateInstance() == State.RUNNING) {
> + throw new IllegalStateException("Interceptors cannot be
> added if the Container is running");
> }
You shouldn't be able to modify the interceptor stack while the
container is stopping state either. A container may want to allow
invocations in while stopping to unwind current work.
/*************************
* Dain Sundstrom
* Partner
* Core Developers Network
*************************/
|