1 Reply Latest reply on Sep 22, 2003 7:58 AM by Bill Burke

    Introduction scope

    Eric Jain Newbie

      Is it possible to specify the scope of an interceptor, so that each instrumented object either has it's own instance of the interceptor, shares an interceptor within a thread, or throughout the VM? What is the default behavior?

        • 1. Re: Introduction scope
          Bill Burke Master

          This is was in the original requirements/spec of JBoss AOP, but it was left out due to time constraints. (See previous posts on this forum).

          You can provide an InterceptorFactory which would allow you to have scope at the global JVM or Class level.

          Interceptors can be applied per instance at runtime through the Advised API.

          I do see the need of per-instance interceptors, so we may add scope.