[jboss-cvs] JBossAS SVN: r62287 - in projects/aop/trunk/aop/src: resources/test/stress/perinstancemethodinvocationmanybindings and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Apr 11 15:08:44 EDT 2007
Author: kabir.khan at jboss.com
Date: 2007-04-11 15:08:43 -0400 (Wed, 11 Apr 2007)
New Revision: 62287
Added:
projects/aop/trunk/aop/src/resources/test/stress/perinstancemethodinvocationmanybindings/
projects/aop/trunk/aop/src/resources/test/stress/perinstancemethodinvocationmanybindings/jboss-aop.xml
projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/
projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/POJO.java
projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerInstanceInterceptor.java
projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerInstanceTestCase.java
projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerVmInterceptor.java
Log:
[JBAOP-378] Add a more realistic test for per instance bindings
Added: projects/aop/trunk/aop/src/resources/test/stress/perinstancemethodinvocationmanybindings/jboss-aop.xml
===================================================================
--- projects/aop/trunk/aop/src/resources/test/stress/perinstancemethodinvocationmanybindings/jboss-aop.xml (rev 0)
+++ projects/aop/trunk/aop/src/resources/test/stress/perinstancemethodinvocationmanybindings/jboss-aop.xml 2007-04-11 19:08:43 UTC (rev 62287)
@@ -0,0 +1,119 @@
+<aop>
+ <interceptor name="perVm" class="org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.PerVmInterceptor" scope="PER_VM"/>
+ <interceptor name="perInstance" class="org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.PerInstanceInterceptor" scope="PER_INSTANCE"/>
+
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new())">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int, int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int, int, int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int, int, int, int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int, int, int, int, int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+ <bind pointcut="execution(org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->new(int, int, int, int, int, int, int, int, int, int, int, int))">
+ <interceptor-ref name="perVm"/>
+ </bind>
+
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field1)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field2)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field3)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field4)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field5)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field6)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field7)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field8)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field9)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field10)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field11)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="field(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->field12)">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method1())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method2())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method3())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method4())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method5())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method6())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method7())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method8())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method9())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method10())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method11())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+ <bind pointcut="execution(* org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings.POJO->method12())">
+ <interceptor-ref name="perInstance"/>
+ </bind>
+
+</aop>
\ No newline at end of file
Added: projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/POJO.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/POJO.java (rev 0)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/POJO.java 2007-04-11 19:08:43 UTC (rev 62287)
@@ -0,0 +1,105 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class POJO
+{
+ public int field1;
+ public int field2;
+ public int field3;
+ public int field4;
+ public int field5;
+ public int field6;
+ public int field7;
+ public int field8;
+ public int field9;
+ public int field10;
+ public int field11;
+ public int field12;
+
+ public POJO() {
+
+ }
+
+ public POJO(int i) {
+
+ }
+
+ public POJO(int i, int i2) {
+
+ }
+
+ public POJO(int i, int i2, int i3) {
+
+ }
+
+ public POJO(int i, int i2, int i3, int i4) {
+
+ }
+
+
+ public POJO(int i, int i2, int i3, int i4, int i5) {
+
+ }
+
+ public POJO(int i, int i2, int i3, int i4, int i5, int i6) {
+
+ }
+
+ public POJO(int i, int i2, int i3, int i4, int i5, int i6, int i8) {
+
+ }
+
+ public POJO(int i, int i2, int i3, int i4, int i5, int i6, int i8, int i9) {
+
+ }
+
+ public POJO(int i, int i2, int i3, int i4, int i5, int i6, int i8, int i9, int i10) {
+
+ }
+
+ public POJO(int i, int i2, int i3, int i4, int i5, int i6, int i8, int i9, int i10, int i11) {
+
+ }
+
+ public POJO(int i, int i2, int i3, int i4, int i5, int i6, int i8, int i9, int i10, int i11, int i12) {
+
+ }
+
+ public void method1() {}
+ public void method2() {}
+ public void method3() {}
+ public void method4() {}
+ public void method5() {}
+ public void method6() {}
+ public void method7() {}
+ public void method8() {}
+ public void method9() {}
+ public void method10() {}
+ public void method11() {}
+ public void method12() {}
+}
Added: projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerInstanceInterceptor.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerInstanceInterceptor.java (rev 0)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerInstanceInterceptor.java 2007-04-11 19:08:43 UTC (rev 62287)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings;
+
+import org.jboss.aop.advice.Interceptor;
+import org.jboss.aop.joinpoint.Invocation;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class PerInstanceInterceptor implements Interceptor
+{
+ public static int called;
+
+ public String getName()
+ {
+ return PerInstanceInterceptor.class.getName();
+ }
+
+ public Object invoke(Invocation invocation) throws Throwable
+ {
+ called++;
+ return invocation.invokeNext();
+ }
+}
Added: projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerInstanceTestCase.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerInstanceTestCase.java (rev 0)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerInstanceTestCase.java 2007-04-11 19:08:43 UTC (rev 62287)
@@ -0,0 +1,167 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings;
+
+import org.jboss.test.aop.stress.AbstractScenario;
+import org.jboss.test.aop.stress.ScenarioTest;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class PerInstanceTestCase extends ScenarioTest
+{
+ public static void main(String[] args)
+ {
+ junit.textui.TestRunner.run(PerInstanceTestCase.class);
+ }
+
+ public PerInstanceTestCase(String name)
+ {
+ // FIXME PerInstanceTestCase constructor
+ super(name);
+ }
+
+ public void testPerInstanceInterceptorRepeatInstantiation() throws Exception
+ {
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo = new POJO();
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo1 = new POJO(1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo2 = new POJO(1, 1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo3 = new POJO(1, 1, 1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo4 = new POJO(1, 1, 1, 1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo5 = new POJO(1, 1, 1, 1, 1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo6 = new POJO(1, 1, 1, 1, 1, 1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo7 = new POJO(1, 1, 1, 1, 1, 1, 1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo8 = new POJO(1, 1, 1, 1, 1, 1, 1, 1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ POJO pojo9 = new POJO(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
+ assertEquals(1, PerVmInterceptor.called);
+ assertEquals(0, PerInstanceInterceptor.called);
+
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ pojo.method1();
+ pojo.method2();
+ pojo.method3();
+ pojo.method4();
+ pojo.method5();
+ pojo.method6();
+ pojo.method7();
+ pojo.method8();
+ pojo.method9();
+ pojo.method10();
+ pojo.method11();
+ pojo.method12();
+ assertEquals(0, PerVmInterceptor.called);
+ assertEquals(12, PerInstanceInterceptor.called);
+
+ PerInstanceInterceptor.called = 0;
+ PerVmInterceptor.called = 0;
+ pojo.field1 = 1;
+ pojo.field2 = 2;
+ pojo.field3 = 3;
+ pojo.field4 = 4;
+ pojo.field5 = 5;
+ pojo.field6 = 6;
+ pojo.field7 = 7;
+ pojo.field8 = 8;
+ pojo.field9 = 9;
+ pojo.field10 = 10;
+ pojo.field11 = 11;
+ pojo.field12 = 12;
+ assertEquals(1, pojo.field1);
+ assertEquals(2, pojo.field2);
+ assertEquals(3, pojo.field3);
+ assertEquals(4, pojo.field4);
+ assertEquals(5, pojo.field5);
+ assertEquals(6, pojo.field6);
+ assertEquals(7, pojo.field7);
+ assertEquals(8, pojo.field8);
+ assertEquals(9, pojo.field9);
+ assertEquals(10, pojo.field10);
+ assertEquals(11, pojo.field11);
+ assertEquals(12, pojo.field12);
+ assertEquals(0, PerVmInterceptor.called);
+ assertEquals(24, PerInstanceInterceptor.called);
+
+ getRunner().executeScenario(new PerInstanceInterceptorRepeatInstantiationScenario());
+ }
+
+ private class PerInstanceInterceptorRepeatInstantiationScenario extends AbstractScenario
+ {
+ public void execute(int thread, int loop) throws Exception
+ {
+ POJO pojo = new POJO();
+ pojo.method1();
+// pojo.field1 = 10;
+// int i = pojo.field1;
+ }
+ }
+}
Added: projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerVmInterceptor.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerVmInterceptor.java (rev 0)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocationmanybindings/PerVmInterceptor.java 2007-04-11 19:08:43 UTC (rev 62287)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.aop.stress.perinstancemethodinvocationmanybindings;
+
+import org.jboss.aop.advice.Interceptor;
+import org.jboss.aop.joinpoint.Invocation;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class PerVmInterceptor implements Interceptor
+{
+ public static int called;
+
+ public String getName()
+ {
+ return PerInstanceInterceptor.class.getName();
+ }
+
+ public Object invoke(Invocation invocation) throws Throwable
+ {
+ called++;
+ return invocation.invokeNext();
+ }
+}
More information about the jboss-cvs-commits
mailing list