[jboss-cvs] JBossCache/examples/PojoCache/non-annotated/src ...

Ben Wang bwang at jboss.com
Thu Sep 21 12:12:18 EDT 2006


  User: bwang   
  Date: 06/09/21 12:12:18

  Modified:    examples/PojoCache/non-annotated/src  jboss-aop.xml
  Log:
  Updated to 2.0 apis
  
  Revision  Changes    Path
  1.2       +11 -12    JBossCache/examples/PojoCache/non-annotated/src/jboss-aop.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: jboss-aop.xml
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/examples/PojoCache/non-annotated/src/jboss-aop.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- jboss-aop.xml	5 Feb 2006 06:42:16 -0000	1.1
  +++ jboss-aop.xml	21 Sep 2006 16:12:18 -0000	1.2
  @@ -11,19 +11,18 @@
       This is JBossAop way of declaring every field in Address has a hook
       for both get and set.
     -->
  -  <prepare expr="field(* examples.Address->*)" />
  -
  -  <!--
  -     We do the same for the Course class. 
  -  -->
  -  <prepare expr="field(* $instanceof{examples.Course}->*)" />
  -
  -  <!--
  -     We also do the same for the Person class. 
  -     Note there is no need to declare Student because of instanceof pointcut 
  -  -->
  -  <prepare expr="field(* $instanceof{examples.Person}->*)" />
  +  <prepare expr="field(* examples.*->*)" />
   
  +  <bind pointcut="set(* examples.*->*)">
  +     <interceptor class="org.jboss.cache.pojo.observable.SubjectInterceptor"/>
  +  </bind>
     
  +  <introduction class="examples.*">
  +     <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>
   
   </aop>
  
  
  



More information about the jboss-cvs-commits mailing list