summaryrefslogtreecommitdiffstats
path: root/java/sca-contrib/modules/tracing-aspectj/src/main/resources/META-INF/aop.xml
blob: f699a140e3d8e2d099cf02f5b663f368b16126e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<aspectj>

    <aspects>
        <!-- Uncomment either of these two aspects to perform standard logging -->
        <!-- or standard tracing on the Tuscany runtime.                       -->
        <!-- <aspect name="org.apache.tuscany.sca.aspectj.SimpleTracingAspect" /> -->   
        <!-- <aspect name="org.apache.tuscany.sca.aspectj.LoggingAspect" /> --> 
        
        <!-- Following is a concrete-aspect that defines the point cut for   -->
        <!-- the TimingAspect. Which ever calls you define in this pointcut  -->
        <!-- will be timed and displayed in the logs.                        -->
        <concrete-aspect name="org.apache.tuscany.sca.aspectj.UserTimingAspect"
           extends="org.apache.tuscany.sca.aspectj.TimingAspect"
           precedence="org.apache.tuscany.sca.aspectj.UserTimingAspect, *">
           <pointcut name="timedCall" 
              expression="call(* java.util.logging.Logger.info(..))"/>
        </concrete-aspect>
    </aspects>
  
    <!--weaver options="-verbose -debug -showWeaveInfo"-->
    <weaver options="-verbose">
        <include within="org.apache.tuscany.sca..*" />
    </weaver>

</aspectj>