[jboss-cvs] JBossAS SVN: r57780 - in projects/aop/trunk/aop/src: resources/test/nameddomain test/org/jboss/test/aop/nameddomain

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Oct 23 17:23:43 EDT 2006


Author: kabir.khan at jboss.com
Date: 2006-10-23 17:23:39 -0400 (Mon, 23 Oct 2006)
New Revision: 57780

Added:
   projects/aop/trunk/aop/src/test/org/jboss/test/aop/nameddomain/SimpleInterceptor.java
Modified:
   projects/aop/trunk/aop/src/resources/test/nameddomain/jboss-aop.xml
   projects/aop/trunk/aop/src/resources/test/nameddomain/manual-aop.xml
Log:
Change the domain test per-instance stuff will be implemented later

Modified: projects/aop/trunk/aop/src/resources/test/nameddomain/jboss-aop.xml
===================================================================
--- projects/aop/trunk/aop/src/resources/test/nameddomain/jboss-aop.xml	2006-10-23 21:03:35 UTC (rev 57779)
+++ projects/aop/trunk/aop/src/resources/test/nameddomain/jboss-aop.xml	2006-10-23 21:23:39 UTC (rev 57780)
@@ -1,6 +1,6 @@
 <aop>
-   <interceptor class="org.jboss.test.aop.nameddomain.InstanceInterceptor" scope="PER_INSTANCE"/>
+   <interceptor class="org.jboss.test.aop.nameddomain.SimpleInterceptor"/>
    <bind pointcut="execution(* org.jboss.test.aop.nameddomain.POJO->someMethod())">
-      <interceptor-ref name="org.jboss.test.aop.nameddomain.InstanceInterceptor"/>
+      <interceptor-ref name="org.jboss.test.aop.nameddomain.SimpleInterceptor"/>
    </bind>
 </aop>

Modified: projects/aop/trunk/aop/src/resources/test/nameddomain/manual-aop.xml
===================================================================
--- projects/aop/trunk/aop/src/resources/test/nameddomain/manual-aop.xml	2006-10-23 21:03:35 UTC (rev 57779)
+++ projects/aop/trunk/aop/src/resources/test/nameddomain/manual-aop.xml	2006-10-23 21:23:39 UTC (rev 57780)
@@ -1,6 +1,5 @@
 <aop>
-   <interceptor class="org.jboss.test.aop.nameddomain.InstanceInterceptor" scope="PER_INSTANCE"/>
    <bind pointcut="execution(* org.jboss.test.aop.nameddomain.Proxied->someMethod())">
-      <interceptor-ref name="org.jboss.test.aop.nameddomain.InstanceInterceptor"/>
+      <interceptor-ref name="org.jboss.test.aop.nameddomain.SimpleInterceptor"/>
    </bind>
 </aop>

Added: projects/aop/trunk/aop/src/test/org/jboss/test/aop/nameddomain/SimpleInterceptor.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/nameddomain/SimpleInterceptor.java	2006-10-23 21:03:35 UTC (rev 57779)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/nameddomain/SimpleInterceptor.java	2006-10-23 21:23:39 UTC (rev 57780)
@@ -0,0 +1,45 @@
+/*
+* 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.nameddomain;
+
+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 SimpleInterceptor implements Interceptor
+{
+   public static SimpleInterceptor icptr;
+   public String getName()
+   {
+      return this.getClass().getName();
+   }
+
+   public Object invoke(Invocation invocation) throws Throwable
+   {
+      return invocation.invokeNext();
+   }
+   
+}




More information about the jboss-cvs-commits mailing list