[jboss-cvs] JBossAS SVN: r62839 - projects/aop/trunk/aop/docs/examples/beanstyleconf.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon May 7 14:09:48 EDT 2007


Author: kabir.khan at jboss.com
Date: 2007-05-07 14:09:47 -0400 (Mon, 07 May 2007)
New Revision: 62839

Modified:
   projects/aop/trunk/aop/docs/examples/beanstyleconf/jboss-aop.xml
Log:
[JBAOP-311] Restore file after previous commit

Modified: projects/aop/trunk/aop/docs/examples/beanstyleconf/jboss-aop.xml
===================================================================
--- projects/aop/trunk/aop/docs/examples/beanstyleconf/jboss-aop.xml	2007-05-07 18:06:19 UTC (rev 62838)
+++ projects/aop/trunk/aop/docs/examples/beanstyleconf/jboss-aop.xml	2007-05-07 18:09:47 UTC (rev 62839)
@@ -1,5 +1,61 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<aop>
+   <!-- Aspect and interceptor definitions -->
+   <interceptor class="ConfigInterceptor" scope="PER_CLASS">
+      <attribute name="Attr1">aa</attribute>
+      <attribute name="Attr2">1</attribute>
+      <advisor-attribute name="MyAdvisor"/>
+      <instance-advisor-attribute name="MyInstanceAdvisor"/>
+      <joinpoint-attribute name="MyJoinpoint"/>  
+   </interceptor>
+   
+   <aspect class="ConfigAspectPerVm" scope="PER_VM">
+      <attribute name="Attr">aspect,per,vm</attribute>
+      <advisor-attribute name="MyAdvisor"/>
+      <instance-advisor-attribute name="MyInstanceAdvisor"/>
+      <joinpoint-attribute name="MyJoinpoint"/>  
+   </aspect>
+   <aspect class="ConfigAspectPerClass" scope="PER_CLASS">
+      <attribute name="Attr">aspect,per,class</attribute>
+      <advisor-attribute name="MyAdvisor"/>
+      <instance-advisor-attribute name="MyInstanceAdvisor"/>
+      <joinpoint-attribute name="MyJoinpoint"/>  
+   </aspect>
+    
+   <aspect class="ConfigAspectPerInstance" scope="PER_INSTANCE">
+      <attribute name="Attr">aspect,per,instance</attribute>
+      <advisor-attribute name="MyAdvisor"/>
+      <instance-advisor-attribute name="MyInstanceAdvisor"/>
+      <joinpoint-attribute name="MyJoinpoint"/>  
+   </aspect>
+    
+   <aspect class="ConfigAspectPerJoinpoint" scope="PER_JOINPOINT">
+      <attribute name="Attr">aspect,per,joinpoint</attribute>
+      <advisor-attribute name="MyAdvisor"/>
+      <instance-advisor-attribute name="MyInstanceAdvisor"/>
+      <joinpoint-attribute name="MyJoinpoint"/>  
+   </aspect>
+    
 
-<project default="run" name="JBoss/AOP">
-   <import file="../examples-build.xml"/>
-</project>
+   <!-- bindings -->
+    
+   <bind pointcut="execution(* POJO->interceptorMethod())">
+      <interceptor-ref name="ConfigInterceptor"/>
+   </bind>
+   
+   <bind pointcut="execution(* POJO->aspectPerVmMethod())">
+      <advice name="methodAdvice" aspect="ConfigAspectPerVm"/>
+   </bind>
+   
+   <bind pointcut="execution(* POJO->aspectPerClassMethod())">
+      <advice name="methodAdvice" aspect="ConfigAspectPerClass"/>
+   </bind>
+   
+   <bind pointcut="execution(* POJO->aspectPerInstanceMethod())">
+      <advice name="methodAdvice" aspect="ConfigAspectPerInstance"/>
+   </bind>
+
+   <bind pointcut="execution(* POJO->aspectPerJoinpointMethod())">
+      <advice name="methodAdvice" aspect="ConfigAspectPerJoinpoint"/>
+   </bind>
+</aop>




More information about the jboss-cvs-commits mailing list