[jboss-cvs] JBossAS SVN: r57912 - in branches/Branch_4_0/testsuite/src/jdk15/org/jboss/test/aop: . scoped

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Oct 30 06:41:20 EST 2006


Author: kabir.khan at jboss.com
Date: 2006-10-30 06:41:19 -0500 (Mon, 30 Oct 2006)
New Revision: 57912

Added:
   branches/Branch_4_0/testsuite/src/jdk15/org/jboss/test/aop/scoped/
   branches/Branch_4_0/testsuite/src/jdk15/org/jboss/test/aop/scoped/AnnotatedInterceptor.java
Log:


Added: branches/Branch_4_0/testsuite/src/jdk15/org/jboss/test/aop/scoped/AnnotatedInterceptor.java
===================================================================
--- branches/Branch_4_0/testsuite/src/jdk15/org/jboss/test/aop/scoped/AnnotatedInterceptor.java	2006-10-30 11:40:01 UTC (rev 57911)
+++ branches/Branch_4_0/testsuite/src/jdk15/org/jboss/test/aop/scoped/AnnotatedInterceptor.java	2006-10-30 11:41:19 UTC (rev 57912)
@@ -0,0 +1,50 @@
+/*
+* 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.scoped;
+
+import org.jboss.aop.Bind;
+import org.jboss.aop.InterceptorDef;
+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 $
+ */
+ at InterceptorDef()
+ at Bind(pointcut="all(org.jboss.test.aop.scoped.POJO)")
+public class AnnotatedInterceptor implements Interceptor
+{
+   static boolean invoked;
+   public String getName()
+   {
+      return this.getClass().getName();
+   }
+
+   public Object invoke(Invocation invocation) throws Throwable
+   {
+      invoked = true;
+      return invocation.invokeNext();
+   }
+
+}




More information about the jboss-cvs-commits mailing list