[jboss-cvs] JBossAS SVN: r74447 - trunk/tomcat/src/resources/META-INF.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jun 11 21:59:00 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-06-11 21:59:00 -0400 (Wed, 11 Jun 2008)
New Revision: 74447

Modified:
   trunk/tomcat/src/resources/META-INF/jboss-aop.xml
Log:
[JBAS-3858] Update jbossweb-cluster.aop to match the basic PojoCache version

Modified: trunk/tomcat/src/resources/META-INF/jboss-aop.xml
===================================================================
--- trunk/tomcat/src/resources/META-INF/jboss-aop.xml	2008-06-12 01:49:16 UTC (rev 74446)
+++ trunk/tomcat/src/resources/META-INF/jboss-aop.xml	2008-06-12 01:59:00 UTC (rev 74447)
@@ -1,20 +1,27 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <aop>
 
-   <!-- If a POJO has the @Replicable annotation, it will be aspectized. -->
-   <prepare expr="field(* @org.jboss.cache.pojo.annotation.Replicable->*)" />
-
-   <!-- Make any POJO with an @Replicable annotation as a Subject/Observable -->
-   <bind pointcut="set(* @org.jboss.cache.pojo.annotation.Replicable->*)">
-      <interceptor class="org.jboss.aspects.patterns.observable.SubjectInterceptor"/>
-   </bind>
-
-   <introduction class="@org.jboss.cache.pojo.annotation.Replicable">
-      <mixin>
-         <interfaces>org.jboss.aspects.patterns.observable.Subject</interfaces>
-         <class>org.jboss.aspects.patterns.observable.SubjectImpl</class>
-         <construction>new org.jboss.aspects.patterns.observable.SubjectImpl(this)</construction>
-      </mixin>
+   <!-- If a POJO has Replicable annotation, it will be aspectized. -->
+   <!--
+   Supports inheritance and polymorphism. It can either be a concrete class
+   or an interface. All sub-classes or interface implementors will be instrumeneted.
+   -->
+   <prepare expr="field(* $instanceof{@org.jboss.cache.pojo.annotation.Replicable}->*)" />
+   
+   <!--  Work around that ensures annotated classes which do not access fields are instrumented -->
+   <introduction expr="class($instanceof{@org.jboss.cache.pojo.annotation.Replicable})"/>
+      
+   <!-- Array support -->
+   <!-- Comment entire section to disable -->
+   <!--  Currently disabled pending upgrade to PojoCache 2.2.0 where this is supported
+   <arrayreplacement expr="class($instanceof{@org.jboss.cache.pojo.annotation.Replicable})"/>
+   <interceptor name="pojocache-array" class="org.jboss.cache.pojo.interceptors.dynamic.ArrayInterceptor"/>
+   <introduction expr="class($instanceof{@org.jboss.cache.pojo.annotation.Replicable})">
+       <interfaces>org.jboss.cache.pojo.impl.ArrayInterceptable</interfaces>
    </introduction>
-  
+   <arraybind name="pojocache-array" type="READ_WRITE">
+      <interceptor-ref name="pojocache-array"/>
+   </arraybind>
+   -->
+   
 </aop>




More information about the jboss-cvs-commits mailing list