[jboss-cvs] JBossAS SVN: r59133 - in branches/Branch_4_0: aspects aspects/src/main/org/jboss/aop/deployment build testsuite/imports/sections testsuite/src/main/org/jboss/test/aop/scoped testsuite/src/main/org/jboss/test/aop/scoped/excluded testsuite/src/main/org/jboss/test/aop/scoped/excluded/included testsuite/src/main/org/jboss/test/aop/test testsuite/src/resources/aop/scoped/sar1/META-INF testsuite/src/resources/aop/scoped/sar2/META-INF

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 19 05:21:28 EST 2006


Author: kabir.khan at jboss.com
Date: 2006-12-19 05:21:16 -0500 (Tue, 19 Dec 2006)
New Revision: 59133

Added:
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/POJO$$Ignored$$123.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/ExcludedPOJO.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/included/
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/included/IncludedPOJO.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/SetupHook.java
Modified:
   branches/Branch_4_0/aspects/build.xml
   branches/Branch_4_0/aspects/src/main/org/jboss/aop/deployment/AspectManagerService.java
   branches/Branch_4_0/build/build-thirdparty.xml
   branches/Branch_4_0/testsuite/imports/sections/aop.xml
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/ScopedTester.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/ScopedTesterMBean.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/AOPClassLoaderHookTestSetup.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/ScopedUnitTestCase.java
   branches/Branch_4_0/testsuite/src/resources/aop/scoped/sar1/META-INF/jboss-aop.xml
   branches/Branch_4_0/testsuite/src/resources/aop/scoped/sar2/META-INF/scoped-aop.xml
Log:
[JBAOP-331] IgnoreExpressions for a domain should be got from main AspectManager

Modified: branches/Branch_4_0/aspects/build.xml
===================================================================
--- branches/Branch_4_0/aspects/build.xml	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/aspects/build.xml	2006-12-19 10:21:16 UTC (rev 59133)
@@ -55,10 +55,10 @@
       &modules;
 
       <!-- Module name(s) & version -->
-   	<!--<property name="version.suffix" value="1.5.2.GA"/>
-      <property name="aspects.version" value="jboss-aspect-library-1.5"/>-->
-   	<property name="version.suffix" value="2.0.0.alpha1"/>
-      <property name="aspects.version" value="jboss-aspect-library-2.0"/>
+   	<property name="version.suffix" value="1.5.3.Beta1"/>
+      <property name="aspects.version" value="jboss-aspect-library-1.5"/>
+   	<!--property name="version.suffix" value="2.0.0.alpha1"/>
+      <property name="aspects.version" value="jboss-aspect-library-2.0"/-->
       <property name="aop.version" value="jboss-aop_${version.suffix}"/>
       <property name="aspects.title" value="JBoss AOP Aspect Library"/>
 

Modified: branches/Branch_4_0/aspects/src/main/org/jboss/aop/deployment/AspectManagerService.java
===================================================================
--- branches/Branch_4_0/aspects/src/main/org/jboss/aop/deployment/AspectManagerService.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/aspects/src/main/org/jboss/aop/deployment/AspectManagerService.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -263,10 +263,13 @@
    {
       this.exclude = exclude;
       ArrayList list = new ArrayList();
-      StringTokenizer tokenizer = new StringTokenizer(exclude, ",");
-      while (tokenizer.hasMoreTokens())
+      if (exclude != null)
       {
-         list.add(tokenizer.nextToken().trim());
+         StringTokenizer tokenizer = new StringTokenizer(exclude, ",");
+         while (tokenizer.hasMoreTokens())
+         {
+            list.add(tokenizer.nextToken().trim());
+         }
       }
       AspectManager.instance().setExclude(list);
    }
@@ -280,10 +283,13 @@
    {
       this.include = include;
       ArrayList list = new ArrayList();
-      StringTokenizer tokenizer = new StringTokenizer(include, ",");
-      while (tokenizer.hasMoreTokens())
+      if (include != null)
       {
-         list.add(tokenizer.nextToken().trim());
+         StringTokenizer tokenizer = new StringTokenizer(include, ",");
+         while (tokenizer.hasMoreTokens())
+         {
+            list.add(tokenizer.nextToken().trim());
+         }
       }
       AspectManager.instance().setInclude(list);
    }
@@ -297,10 +303,13 @@
    {
       this.ignore = ignore;
       ArrayList list = new ArrayList();
-      StringTokenizer tokenizer = new StringTokenizer(ignore, ",");
-      while (tokenizer.hasMoreTokens())
+      if (ignore != null)
       {
-         list.add(tokenizer.nextToken().trim());
+         StringTokenizer tokenizer = new StringTokenizer(ignore, ",");
+         while (tokenizer.hasMoreTokens())
+         {
+            list.add(tokenizer.nextToken().trim());
+         }
       }
       AspectManager.instance().setIgnore(list);
    }

Modified: branches/Branch_4_0/build/build-thirdparty.xml
===================================================================
--- branches/Branch_4_0/build/build-thirdparty.xml	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/build/build-thirdparty.xml	2006-12-19 10:21:16 UTC (rev 59133)
@@ -84,8 +84,8 @@
       <componentref name="ibm-wsdl4j" version="1.5.2jboss"/>
       <componentref name="jacorb" version="2.2.4jboss.patch1"/>
       <componentref name="javassist" version="3.3.0.GA"/>
-      <componentref name="jaxen" version="1.1-beta-9"/>      
-      <componentref name="jboss/aop" version="1.5.2.GA"/>
+      <componentref name="jaxen" version="1.1-beta-9"/>
+      <componentref name="jboss/aop" version="1.5.3.beta1"/>
       <componentref name="jboss/backport-concurrent" version="2.1.0.GA"/>
       <componentref name="jboss/cache" version="1.4.0.SP1"/>
       <componentref name="jboss/common" version="1.0.0.GA"/>

Modified: branches/Branch_4_0/testsuite/imports/sections/aop.xml
===================================================================
--- branches/Branch_4_0/testsuite/imports/sections/aop.xml	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/imports/sections/aop.xml	2006-12-19 10:21:16 UTC (rev 59133)
@@ -171,6 +171,7 @@
     <jar destfile="${build.lib}/aop-scopedtest1.aop">
       <fileset dir="${build.classes}">
         <include name="org/jboss/test/aop/scoped/*.class"/>
+        <include name="org/jboss/test/aop/scoped/excluded/**/*.class"/>
         <exclude name="org/jboss/test/aop/scoped/ScopedTester*.class"/>
       </fileset>
       <fileset dir="${build.resources}/aop/scoped/sar1">
@@ -191,6 +192,7 @@
     <jar destfile="${build.lib}/aop-scopedtest2.sar">
       <fileset dir="${build.classes}">
         <include name="org/jboss/test/aop/scoped/*.class"/>
+        <include name="org/jboss/test/aop/scoped/excluded/**/*.class"/>
       </fileset>
       <fileset dir="${build.resources}/aop/scoped/sar2/META-INF">
         <include name="scoped-aop.xml"/>

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/POJO$$Ignored$$123.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/POJO$$Ignored$$123.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/POJO$$Ignored$$123.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -0,0 +1,32 @@
+/*
+* 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;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class POJO$$Ignored$$123
+{
+
+}

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/ScopedTester.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/ScopedTester.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/ScopedTester.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -21,6 +21,10 @@
  */
 package org.jboss.test.aop.scoped;
 
+import org.jboss.aop.Advised;
+import org.jboss.test.aop.scoped.excluded.ExcludedPOJO;
+import org.jboss.test.aop.scoped.excluded.included.IncludedPOJO;
+
 /**
  * 
  * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
@@ -182,4 +186,28 @@
       }
    }
    
+   public void testInclude()
+   {
+      if (!Advised.class.isAssignableFrom(IncludedPOJO.class))
+      {
+         throw new RuntimeException("IncludedPOJO should be Advised");
+      }
+   }
+   
+   public void testExclude()
+   {
+      if (Advised.class.isAssignableFrom(ExcludedPOJO.class))
+      {
+         throw new RuntimeException("ExcludedPOJO should not be Advised");
+      }
+   }
+   
+   public void testIgnore()
+   {
+      if (Advised.class.isAssignableFrom(POJO$$Ignored$$123.class))
+      {
+         throw new RuntimeException("POJO$$Ignored$$123 should not be Advised");
+      }
+   }
+   
 }

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/ScopedTesterMBean.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/ScopedTesterMBean.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/ScopedTesterMBean.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -38,4 +38,8 @@
    void testScoped() throws Exception;
    void testIntroduction1();
    void testIntroduction2();
+   
+   void testInclude();
+   void testExclude();
+   void testIgnore();
 }

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/ExcludedPOJO.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/ExcludedPOJO.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/ExcludedPOJO.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -0,0 +1,32 @@
+/*
+* 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.excluded;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ExcludedPOJO
+{
+
+}

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/included/IncludedPOJO.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/included/IncludedPOJO.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/scoped/excluded/included/IncludedPOJO.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -0,0 +1,32 @@
+/*
+* 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.excluded.included;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IncludedPOJO
+{
+
+}

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/AOPClassLoaderHookTestSetup.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/AOPClassLoaderHookTestSetup.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/AOPClassLoaderHookTestSetup.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -40,6 +40,7 @@
    public static String ASPECT_MANAGER_NAME = "jboss.aop:service=AspectManager";
 
    private String[] jars;
+   SetupHook hook;
 
    // Create an initializer for the test suite
    public AOPClassLoaderHookTestSetup(TestSuite suite, String jar) throws Exception
@@ -48,12 +49,22 @@
       this.jars = jar.split(",");
    }
 
+   public AOPClassLoaderHookTestSetup(TestSuite suite, SetupHook hook, String jar) throws Exception
+   {
+      this(suite, jar);
+      this.hook = hook;
+   }
+
    protected void setUp() throws Exception
    {
       super.setUp();
       ObjectName aspectManager = new ObjectName(ASPECT_MANAGER_NAME);
       Attribute enableTransformer = new Attribute("EnableLoadtimeWeaving", Boolean.TRUE);
       getServer().setAttribute(aspectManager, enableTransformer);
+      if (hook != null)
+      {
+         hook.setup(getServer());
+      }
       try
       {
          for (int i = 0 ; i < jars.length ; i++)
@@ -69,6 +80,10 @@
          {
             enableTransformer = new Attribute("EnableLoadtimeWeaving", Boolean.FALSE);
             getServer().setAttribute(aspectManager, enableTransformer);
+            if (hook != null)
+            {
+               hook.teardown(getServer());
+            }
          }
          catch(Exception ex)
          {
@@ -95,6 +110,10 @@
       ObjectName aspectManager = new ObjectName(ASPECT_MANAGER_NAME);
       Attribute enableTransformer = new Attribute("EnableLoadtimeWeaving", Boolean.FALSE);
       getServer().setAttribute(aspectManager, enableTransformer);
+      if (hook != null)
+      {
+         hook.teardown(getServer());
+      }
       if( undeployException != null )
          throw undeployException;
       super.tearDown();

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/ScopedUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/ScopedUnitTestCase.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/ScopedUnitTestCase.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -23,6 +23,7 @@
 
 import java.net.URL;
 
+import javax.management.Attribute;
 import javax.management.MBeanServerConnection;
 import javax.management.ObjectName;
 
@@ -30,6 +31,7 @@
 import junit.framework.TestSuite;
 
 import org.jboss.test.JBossTestCase;
+import org.jboss.test.JBossTestSetup;
 import org.jboss.test.util.web.HttpUtils;
 
 /**
@@ -38,8 +40,7 @@
  * @author <a href="mailto:bill at burkecentral.com">Kabir Khan</a>
  * @version $Id$
  */
-public class ScopedUnitTestCase
-        extends JBossTestCase
+public class ScopedUnitTestCase extends JBossTestCase
 {
    org.apache.log4j.Category log = getLog();
 
@@ -109,6 +110,60 @@
       server.invoke(testerName, "testIntroduction2", params, sig);
    }
 
+   public void testInclude1() throws Exception
+   {
+      MBeanServerConnection server = getServer();
+      ObjectName testerName = new ObjectName("jboss.aop:name=ScopedTester1");
+      Object[] params = {};
+      String[] sig = {};
+      server.invoke(testerName, "testInclude", params, sig);
+   }
+   
+   public void testInclude2() throws Exception
+   {
+      MBeanServerConnection server = getServer();
+      ObjectName testerName = new ObjectName("jboss.aop:name=ScopedTester2");
+      Object[] params = {};
+      String[] sig = {};
+      server.invoke(testerName, "testInclude", params, sig);
+   }
+   
+   public void testExclude1() throws Exception
+   {
+      MBeanServerConnection server = getServer();
+      ObjectName testerName = new ObjectName("jboss.aop:name=ScopedTester1");
+      Object[] params = {};
+      String[] sig = {};
+      server.invoke(testerName, "testExclude", params, sig);
+   }
+   
+   public void testExclude2() throws Exception
+   {
+      MBeanServerConnection server = getServer();
+      ObjectName testerName = new ObjectName("jboss.aop:name=ScopedTester2");
+      Object[] params = {};
+      String[] sig = {};
+      server.invoke(testerName, "testExclude", params, sig);
+   }
+   
+   public void testIgnore1() throws Exception
+   {
+      MBeanServerConnection server = getServer();
+      ObjectName testerName = new ObjectName("jboss.aop:name=ScopedTester1");
+      Object[] params = {};
+      String[] sig = {};
+      server.invoke(testerName, "testIgnore", params, sig);
+   }
+   
+   public void testIgnore2() throws Exception
+   {
+      MBeanServerConnection server = getServer();
+      ObjectName testerName = new ObjectName("jboss.aop:name=ScopedTester2");
+      Object[] params = {};
+      String[] sig = {};
+      server.invoke(testerName, "testIgnore", params, sig);
+   }
+   
    public void testEar1() throws Exception
    {
       URL url = new URL(HttpUtils.getBaseURL() + "ear1/srv");
@@ -126,8 +181,37 @@
       TestSuite suite = new TestSuite();
       suite.addTest(new TestSuite(ScopedUnitTestCase.class));
 
-      setup = new AOPClassLoaderHookTestSetup(suite, "aop-scopedtest1.sar,aop-scopedtest2.sar,aop-scopedear1.ear,aop-scopedear2.ear");
+      setup = new AOPClassLoaderHookTestSetup(suite, new MySetupHook(), "aop-scopedtest1.sar,aop-scopedtest2.sar,aop-scopedear1.ear,aop-scopedear2.ear");
       return setup;
    }
 
+   static class MySetupHook implements SetupHook
+   {
+      String originalIgnore;
+      String originalInclude;
+      String originalExclude;
+
+      public void setup(MBeanServerConnection server) throws Exception
+      {
+         ObjectName aspectManager = new ObjectName(AOPClassLoaderHookTestSetup.ASPECT_MANAGER_NAME);
+         
+         originalIgnore = (String)server.getAttribute(aspectManager, "Ignore");
+         server.setAttribute(aspectManager, new Attribute("Ignore", "*$$Ignored$$*"));
+         
+         originalInclude = (String)server.getAttribute(aspectManager, "Include");
+         server.setAttribute(aspectManager, new Attribute("Include", "org.jboss.test.aop.scoped.excluded.included."));
+         
+         originalExclude = (String)server.getAttribute(aspectManager, "Exclude");
+         server.setAttribute(aspectManager, new Attribute("Exclude", "org.jboss.test.aop.scoped.excluded."));
+      }
+   
+      public void teardown(MBeanServerConnection server) throws Exception
+      {
+         ObjectName aspectManager = new ObjectName(AOPClassLoaderHookTestSetup.ASPECT_MANAGER_NAME);
+   
+         server.setAttribute(aspectManager, new Attribute("Ignore", originalIgnore));
+         server.setAttribute(aspectManager, new Attribute("Include", originalInclude));
+         server.setAttribute(aspectManager, new Attribute("Exclude", originalExclude));
+      }
+   }
 }

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/SetupHook.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/SetupHook.java	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/aop/test/SetupHook.java	2006-12-19 10:21:16 UTC (rev 59133)
@@ -0,0 +1,37 @@
+/*
+* 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.test;
+
+import javax.management.MBeanServerConnection;
+
+import org.jboss.test.JBossTestSetup;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface SetupHook
+{
+   void setup(MBeanServerConnection server) throws Exception;
+   void teardown(MBeanServerConnection server) throws Exception;
+}

Modified: branches/Branch_4_0/testsuite/src/resources/aop/scoped/sar1/META-INF/jboss-aop.xml
===================================================================
--- branches/Branch_4_0/testsuite/src/resources/aop/scoped/sar1/META-INF/jboss-aop.xml	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/resources/aop/scoped/sar1/META-INF/jboss-aop.xml	2006-12-19 10:21:16 UTC (rev 59133)
@@ -46,4 +46,7 @@
       <interceptor-ref name="org.jboss.test.aop.scoped.ScopedInterceptor"/>
    </bind>
    
+   <prepare expr="all(org.jboss.test.aop.scoped.excluded.ExcludedPOJO)"/>
+   <prepare expr="all(org.jboss.test.aop.scoped.excluded.included.IncludedPOJO)"/>
+   <prepare expr="all(org.jboss.test.aop.scoped.POJO$$Ignored$$123)"/>
 </aop>

Modified: branches/Branch_4_0/testsuite/src/resources/aop/scoped/sar2/META-INF/scoped-aop.xml
===================================================================
--- branches/Branch_4_0/testsuite/src/resources/aop/scoped/sar2/META-INF/scoped-aop.xml	2006-12-19 08:10:32 UTC (rev 59132)
+++ branches/Branch_4_0/testsuite/src/resources/aop/scoped/sar2/META-INF/scoped-aop.xml	2006-12-19 10:21:16 UTC (rev 59133)
@@ -46,4 +46,8 @@
       <interceptor-ref name="org.jboss.test.aop.scoped.ScopedInterceptor"/>
    </bind>
    
+   <prepare expr="all(org.jboss.test.aop.scoped.excluded.ExcludedPOJO)"/>
+   <prepare expr="all(org.jboss.test.aop.scoped.excluded.included.IncludedPOJO)"/>
+   <prepare expr="all(org.jboss.test.aop.scoped.POJO$$Ignored$$123)"/>
+   
 </aop>




More information about the jboss-cvs-commits mailing list