[jboss-cvs] JBossAS SVN: r60309 - branches/Branch_4_2/tomcat/src/resources/META-INF.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 5 16:13:47 EST 2007
Author: bstansberry at jboss.com
Date: 2007-02-05 16:13:47 -0500 (Mon, 05 Feb 2007)
New Revision: 60309
Modified:
branches/Branch_4_2/tomcat/src/resources/META-INF/jboss-aop.xml
Log:
[JBAS-4051] Support the org.jboss.cache.aop marker interfaces
Modified: branches/Branch_4_2/tomcat/src/resources/META-INF/jboss-aop.xml
===================================================================
--- branches/Branch_4_2/tomcat/src/resources/META-INF/jboss-aop.xml 2007-02-05 21:05:09 UTC (rev 60308)
+++ branches/Branch_4_2/tomcat/src/resources/META-INF/jboss-aop.xml 2007-02-05 21:13:47 UTC (rev 60309)
@@ -41,7 +41,38 @@
</mixin>
</introduction>
+ <!-- If a POJO has the JBoss Cache JDK 1.4 AopMarker interface, it will be aspectized. -->
+ <prepare expr="field(* @org.jboss.cache.aop.AopMarker->*)" />
+ <!-- Make any POJO with the JBoss Cache JDK 1.4 AopMarker interface as a Subject/Observerable -->
+ <bind pointcut="set(* @org.jboss.cache.aop.AopMarker->*)">
+ <interceptor class="org.jboss.aspects.patterns.observable.SubjectInterceptor"/>
+ </bind>
+
+ <introduction class="@org.jboss.cache.aop.AopMarker">
+ <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>
+ </introduction>
+
+ <!-- If a POJO has the JBoss Cache JDK 1.4 InstanceOfAopMarker interface, it will be aspectized. -->
+ <prepare expr="field(* $instanceof{@org.jboss.cache.aop.InstanceOfAopMarker}->*)" />
+
+ <!-- Make any POJO with the JBoss Cache JDK 1.4 InstanceOfAopMarker interface as a Subject/Observerable -->
+ <bind pointcut="set(* @org.jboss.cache.aop.InstanceOfAopMarker->*)">
+ <interceptor class="org.jboss.aspects.patterns.observable.SubjectInterceptor"/>
+ </bind>
+
+ <introduction class="@org.jboss.cache.aop.InstanceOfAopMarker">
+ <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>
+ </introduction>
+
<!-- If a POJO has JDK5 PojoCacheable annotation, it will be aspectized. -->
<prepare expr="field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)" />
More information about the jboss-cvs-commits
mailing list