geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@coredevelopers.net>
Subject Re: cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/lock LockInterceptor.java
Date Sun, 24 Aug 2003 05:18:33 GMT
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
  *************************/


Mime
View raw message