]> source.dussan.org Git - aspectj.git/commitdiff
precedence doc for concrete-aspect
authoravasseur <avasseur>
Thu, 27 Oct 2005 09:50:55 +0000 (09:50 +0000)
committeravasseur <avasseur>
Thu, 27 Oct 2005 09:50:55 +0000 (09:50 +0000)
docs/devGuideDB/ltw.xml

index 09ac6520cc8d6612b6a2f0441054166ffafe2764..45c98d712f4c1bbdb38fb3be91c936b157990e0e 100644 (file)
               <aspect name="com.MyAspect.Inner"/>
 
               <!-- define a concrete aspect inline -->
-              <concrete-aspect name="com.xyz.tracing.MyTracing" extends="tracing.AbstractTracing">
+              <concrete-aspect name="com.xyz.tracing.MyTracing"
+                               extends="tracing.AbstractTracing"
+                               precedence="com.xyz.first, *">
                 <pointcut name="tracingScope" expression="within(org.maw.*)"/>
               </concrete-aspect>
 
             <title>Using Concrete Aspects</title>
             <para>
                 It is possible to concretize an abstract aspect by the mean of the <literal>META-INF/aop.xml</literal>
-                file. This is usefull to define abstract pointcuts at deployment time.
+                file. This is usefull to define abstract pointcuts at deployment time, and also gives control
+                over precedence through the <literal>precedence</literal> attribute of the
+                <literal>concrete-aspect</literal> XML element.
                 Consider the following:
             </para>
             <programlisting><![CDATA[