[jboss-cvs] JBossCache/src-50/resources ...
Ben Wang
bwang at jboss.com
Tue Nov 21 01:08:33 EST 2006
User: bwang
Date: 06/11/21 01:08:33
Modified: src-50/resources pojocache-aop.xml
Log:
JBCACHE-868 Renaming PojoCache annotation.
Revision Changes Path
1.7 +6 -19 JBossCache/src-50/resources/pojocache-aop.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: pojocache-aop.xml
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/resources/pojocache-aop.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- pojocache-aop.xml 9 Nov 2006 16:52:47 -0000 1.6
+++ pojocache-aop.xml 21 Nov 2006 06:08:33 -0000 1.7
@@ -133,36 +133,23 @@
<!--
Following is declaration for JDK50 annotation. You use the specific annotation on your
POJO such that it can be instrumented. Idea is user will then need only to annotate like:
- @org.jboss.cache.pojo.annotation.PojoCacheable
+ @org.jboss.cache.pojo.annotation.Replicable
in his POJO. There will be no need of jboss-aop.xml from user's side.
+ Note that this annotation is inheritant, meaning the subclass will be
+ instrumented as well.
-->
<!-- If a POJO has PojoCachable annotation, it will be asepctized. -->
- <prepare expr="field(* @org.jboss.cache.pojo.annotation.PojoCacheable->*)" />
-
- <!--
- 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.InstanceOfPojoCacheable}->*)" />
+ <prepare expr="field(* @org.jboss.cache.pojo.annotation.Replicable->*)" />
<!-- Observer and Observable to monitor field modification -->
<bind pointcut="
- set(* $instanceof{@org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable}->*) OR
- set(* @org.jboss.cache.pojo.annotation.PojoCacheable->*)
+ set(* @org.jboss.cache.pojo.annotation.Replicable->*)
">
<interceptor class="org.jboss.cache.pojo.observable.SubjectInterceptor"/>
</bind>
- <introduction class="$instanceof{@org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable}">
- <mixin>
- <interfaces>org.jboss.cache.pojo.observable.Subject</interfaces>
- <class>org.jboss.cache.pojo.observable.SubjectImpl</class>
- <construction>new org.jboss.cache.pojo.observable.SubjectImpl(this)</construction>
- </mixin>
- </introduction>
-
- <introduction class="@org.jboss.cache.pojo.annotation.PojoCacheable">
+ <introduction class="@org.jboss.cache.pojo.annotation.Replicable">
<mixin>
<interfaces>org.jboss.cache.pojo.observable.Subject</interfaces>
<class>org.jboss.cache.pojo.observable.SubjectImpl</class>
More information about the jboss-cvs-commits
mailing list