Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DIFCoreInfoAspect |
|
| 0.0;0 |
1 | 0 | /** |
2 | * - Digitalis Internal Framework v2.0 - | |
3 | * | |
4 | * (C) 2007, Digitalis Informatica. | |
5 | * | |
6 | * Distribuicao e Gestao de Informatica, Lda. | |
7 | * Estrada de Paco de Arcos num.9 - Piso -1 | |
8 | * 2780-666 Paco de Arcos | |
9 | * Telefone: (351) 21 4408990 | |
10 | * Fax: (351) 21 4408999 | |
11 | * http://www.digitalis.pt | |
12 | */ | |
13 | package pt.digitalis.dif.utils.logging; | |
14 | ||
15 | ||
16 | /** | |
17 | * This aspect takes care of the framework's core logging duties associated with the log level 'info'. | |
18 | * | |
19 | * @author Rodrigo Gonçalves <a href="mailto:rgoncalves@digitalis.pt">rgoncalves@digitalis.pt</a> | |
20 | * @created 2007/05/28 | |
21 | */ | |
22 | 0 | public aspect DIFCoreInfoAspect extends DIFLogAspect { |
23 | ||
24 | /* As of Nov/2008 the aspect code was commented. This was done as part of bug 9459. */ | |
25 | ||
26 | // /** Captures the AbstractChAL's <code>serve()</code> method execution. */ | |
27 | // private pointcut serve() : execution (* pt.digitalis.dif.controller.AbstractChAL+.serve(..)); | |
28 | // | |
29 | // /** Captures the Dispatcher's <code>dispatch()</code> method execution. */ | |
30 | // private pointcut dispatch() : execution (* pt.digitalis.dif.controller.AbstractDIFDispatcher+.dispatch(..)); | |
31 | // | |
32 | // /** Logs the AbstractChAL entrance. */ | |
33 | // before() : serve() | |
34 | // { | |
35 | // if (super.getLogger().isInfoEnabled()) { | |
36 | // super.getLogger().increaseIndentation(); | |
37 | // | |
38 | // Signature signature = thisJoinPointStaticPart.getSignature(); | |
39 | // logInfo("Entering ", signature); | |
40 | // | |
41 | // super.getLogger().decreaseIndentation(); | |
42 | // } | |
43 | // } | |
44 | // | |
45 | // /** Logs the AbstractChAL exit. */ | |
46 | // after() : serve() | |
47 | // { | |
48 | // if (super.getLogger().isInfoEnabled()) { | |
49 | // super.getLogger().increaseIndentation(); | |
50 | // | |
51 | // Signature signature = thisJoinPointStaticPart.getSignature(); | |
52 | // logInfo("Exiting ", signature); | |
53 | // | |
54 | // super.getLogger().decreaseIndentation(); | |
55 | // } | |
56 | // } | |
57 | // | |
58 | // /** Logs the Dispatcher entrance. */ | |
59 | // before() : dispatch() | |
60 | // { | |
61 | // if (super.getLogger().isInfoEnabled()) { | |
62 | // super.getLogger().increaseIndentation(); | |
63 | // | |
64 | // Signature signature = thisJoinPointStaticPart.getSignature(); | |
65 | // logInfo("Entering ", signature); | |
66 | // | |
67 | // super.getLogger().decreaseIndentation(); | |
68 | // } | |
69 | // } | |
70 | // | |
71 | // /** Logs the Dispatcher exit. */ | |
72 | // after() : dispatch() | |
73 | // { | |
74 | // if (super.getLogger().isInfoEnabled()) { | |
75 | // super.getLogger().increaseIndentation(); | |
76 | // | |
77 | // Signature signature = thisJoinPointStaticPart.getSignature(); | |
78 | // logInfo("Exiting ", signature); | |
79 | // | |
80 | // super.getLogger().decreaseIndentation(); | |
81 | // } | |
82 | // } | |
83 | // | |
84 | // /** | |
85 | // * Auxiliary method to provide code reuse for logging | |
86 | // * | |
87 | // * @param message | |
88 | // * the message to log | |
89 | // * @param signature | |
90 | // * the joinpoint signature | |
91 | // */ | |
92 | // private void logInfo(String message, Signature signature) { | |
93 | // super.getLogger().info( | |
94 | // super.getLogger().getIndentationString() + message + signature.getDeclaringType().getName() + "." | |
95 | // + signature.getName()); | |
96 | // } | |
97 | } |