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

Ben Wang bwang at jboss.com
Sun Sep 24 05:25:53 EDT 2006


  User: bwang   
  Date: 06/09/24 05:25:53

  Added:       examples/PojoCache/non-annotated/src  user-aop.xml
  Log:
  Updated with pojocache-aop.xml
  
  Revision  Changes    Path
  1.1      date: 2006/09/24 09:25:53;  author: bwang;  state: Exp;JBossCache/examples/PojoCache/non-annotated/src/user-aop.xml
  
  Index: user-aop.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!--
    This is the meta file to declare user's POJO as "aspectized" under
    JBossCacheAop. User will need this file when:
    1. Run off-line precompier, aopc, to generate the "aspectized" class
    2. Run on-line with a special aop class loader.
  -->
  <aop>
    <!--
      This is JBossAop way of declaring every field in Address has a hook
      for both get and set.
    -->
    <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