[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 @@
         &lt;!--
            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.
         --&gt;
   
         &lt;!-- If a POJO has PojoCachable annotation, it will be asepctized. --&gt;
  -      &lt;prepare expr="field(* @org.jboss.cache.pojo.annotation.PojoCacheable-&gt;*)" /&gt;
  -
  -      &lt;!--
  -      Supports inheritance and polymorphism. It can either be a concrete class
  -      or an interface. All sub-classes or interface implementors will be instrumeneted.
  -      --&gt;
  -      &lt;prepare expr="field(* $instanceof{@org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable}-&gt;*)" /&gt;
  +      &lt;prepare expr="field(* @org.jboss.cache.pojo.annotation.Replicable-&gt;*)" /&gt;
   
         &lt;!-- Observer and Observable to monitor field modification --&gt;
         &lt;bind pointcut="
  -         set(* $instanceof{@org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable}-&gt;*) OR
  -         set(* @org.jboss.cache.pojo.annotation.PojoCacheable-&gt;*)
  +         set(* @org.jboss.cache.pojo.annotation.Replicable-&gt;*)
            "&gt;
               &lt;interceptor class="org.jboss.cache.pojo.observable.SubjectInterceptor"/&gt;
         &lt;/bind&gt;
   
  -      &lt;introduction class="$instanceof{@org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable}"&gt;
  -         &lt;mixin&gt;
  -            &lt;interfaces&gt;org.jboss.cache.pojo.observable.Subject&lt;/interfaces&gt;
  -            &lt;class&gt;org.jboss.cache.pojo.observable.SubjectImpl&lt;/class&gt;
  -            &lt;construction&gt;new org.jboss.cache.pojo.observable.SubjectImpl(this)&lt;/construction&gt;
  -         &lt;/mixin&gt;
  -      &lt;/introduction&gt;
  -
  -      &lt;introduction class="@org.jboss.cache.pojo.annotation.PojoCacheable"&gt;
  +      &lt;introduction class="@org.jboss.cache.pojo.annotation.Replicable"&gt;
            &lt;mixin&gt;
               &lt;interfaces&gt;org.jboss.cache.pojo.observable.Subject&lt;/interfaces&gt;
               &lt;class&gt;org.jboss.cache.pojo.observable.SubjectImpl&lt;/class&gt;
  
  
  
  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>
   &lt;aop&gt;
  -  &lt;prepare expr="field(* @org.jboss.cache.pojo.annotation.PojoCacheable-&gt;*)" /&gt;
  -  &lt;prepare expr="field(* $instanceof{@@org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable}-&gt;*)" /&gt;
  +  &lt;prepare expr="field(* @org.jboss.cache.pojo.annotation.Replicable-&gt;*)" /&gt;
   &lt;/aop&gt;
   </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