[jboss-cvs] JBossCache/docs/PojoCache/en/modules ...
Ben Wang
bwang at jboss.com
Tue Nov 21 01:08:20 EST 2006
User: bwang
Date: 06/11/21 01:08:20
Modified: docs/PojoCache/en/modules appendix.xml instrumentation.xml
Log:
JBCACHE-868 Renaming PojoCache annotation.
Revision Changes Path
1.5 +8 -23 JBossCache/docs/PojoCache/en/modules/appendix.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: appendix.xml
===================================================================
RCS file: /cvsroot/jboss/JBossCache/docs/PojoCache/en/modules/appendix.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- appendix.xml 26 Oct 2006 09:01:44 -0000 1.4
+++ appendix.xml 21 Nov 2006 06:08:20 -0000 1.5
@@ -16,7 +16,7 @@
</para>
<programlisting>
- at org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable
+ at org.jboss.cache.pojo.annotation.Replicable
public class Person {
String name=null;
int age=0;
@@ -52,8 +52,8 @@
}</programlisting>
<programlisting>
- at org.jboss.cache.pojo.annotation.PojoCacheable
-public class Address {
+ @org.jboss.cache.pojo.annotation.Replicable
+ public class Address {
String street=null;
String city=null;
int zip=0;
@@ -284,36 +284,21 @@
<!--
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.
-->
<!-- 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>
1.5 +4 -5 JBossCache/docs/PojoCache/en/modules/instrumentation.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: instrumentation.xml
===================================================================
RCS file: /cvsroot/jboss/JBossCache/docs/PojoCache/en/modules/instrumentation.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- instrumentation.xml 26 Oct 2006 09:01:44 -0000 1.4
+++ instrumentation.xml 21 Nov 2006 06:08:20 -0000 1.5
@@ -157,8 +157,7 @@
:
<programlisting>
<aop>
- <prepare expr="field(* @org.jboss.cache.pojo.annotation.PojoCacheable->*)" />
- <prepare expr="field(* $instanceof{@@org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable}->*)" />
+ <prepare expr="field(* @org.jboss.cache.pojo.annotation.Replicable->*)" />
</aop>
</programlisting>
Basically, it simply states that any annotation
@@ -171,14 +170,14 @@
<programlisting>
- at org.jboss.cache.pojo.annotation.PojoCacheable
-public class Address {...}
+ @org.jboss.cache.pojo.annotation.Replicable
+ public class Address {...}
</programlisting>
The above declaration will instrument the class <literal>Address</literal>, and
<programlisting>
- at org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable
+ at org.jboss.cache.pojo.annotation.Replicable
public class Person {...}
</programlisting>
The above declaration will instrument the class <literal>Person</literal> and all of its sub-classes. That is, if
More information about the jboss-cvs-commits
mailing list