This content has been marked as final.
Show 4 replies
-
1. Re: InterceptorSimpleIfaceDeploymentTestCase
kabirkhan Nov 26, 2008 9:15 AM (in response to starksm64)It should be
<bind xmlns="urn:jboss:aop-beans:1.0" pointcut="execution(* $instanceof{org.jboss.test.microcontainer.beans.iPOJO}->$implements{org.jboss.test.microcontainer.beans.iPOJO}(..))"> <interceptor-ref name="org.jboss.test.microcontainer.beans.TestInterceptor"/> </bind>
i.e.
$instanceof{} rather than $instanceof() and you need the parameters.
I've updated the test so it works -
2. Re: InterceptorSimpleIfaceDeploymentTestCase
starksm64 Nov 26, 2008 9:44 AM (in response to starksm64)You mean $implements{} + parameters based on the change I see:
pointcut="execution(* $instanceof{org.jboss.test.microcontainer.beans.iPOJO}->$implements{org.jboss.test.microcontainer.beans.iPOJO}(..))"
I also verified this in jbossas profileservice which is where I was trying to get this to work. -
3. Re: InterceptorSimpleIfaceDeploymentTestCase
kabirkhan Nov 26, 2008 11:58 AM (in response to starksm64)"scott.stark@jboss.org" wrote:
You mean $implements{} + parameters based on the change I see:pointcut="execution(* $instanceof{org.jboss.test.microcontainer.beans.iPOJO}->$implements{org.jboss.test.microcontainer.beans.iPOJO}(..))"
Umm, yes :-)"scott.stark@jboss.org" wrote:
I also verified this in jbossas profileservice which is where I was trying to get this to work.
By that do you mean it works now? -
4. Re: InterceptorSimpleIfaceDeploymentTestCase
starksm64 Nov 26, 2008 12:47 PM (in response to starksm64)Yes, only the ManagementView interface methods are being intercepted.