Clover.NET coverage report - Coverage for s2container.net

Coverage timestamp: 2006年5月30日 11:21:29

File Stats: LOC: 99   Methods: 5
NCLOC: 38 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Framework.Aop\Impl\AspectImpl.cs - 80.0% 80.0% 80.0%
coverage coverage
1   #region Copyright
2   /*
3   * Copyright 2005 the Seasar Foundation and the Others.
4   *
5   * Licensed under the Apache License, Version 2.0 (the "License");
6   * you may not use this file except in compliance with the License.
7   * You may obtain a copy of the License at
8   *
9   * http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14   * either express or implied. See the License for the specific language
15   * governing permissions and limitations under the License.
16   */
17   #endregion
18  
19   using System;
20  
21   namespace Seasar.Framework.Aop.Impl
22   {
23   /// <summary>
24   /// IAspectインターフェイスの実装
25   /// </summary>
26   [Serializable]
27   public class AspectImpl : IAspect
28   {
29   /// <summary>
30   /// Interceptor
31   /// </summary>
32   private IMethodInterceptor methodInterceptor_;
33  
34   /// <summary>
35   /// Pointcut
36   /// </summary>
37   /// <remarks>
38   /// このフィールドがnullの場合はすべてのメソッドがInterceptされます。
39   /// </remarks>
40   private IPointcut pointcut_;
41  
42   /// <summary>
43   /// コンストラクタ
44   /// </summary>
45   /// <param name="methodInterceptor">IMethodInterceptor</param>
46   /// <param name="pointcut">
47   /// IPointcut(nullでもよい。その場合すべてのメソッドがInterceptの対象となる)
48   /// </param>
49 60 public AspectImpl(IMethodInterceptor methodInterceptor,IPointcut pointcut)
50   {
51 60 methodInterceptor_ = methodInterceptor;
52 60 pointcut_ = pointcut;
53   }
54  
55   /// <summary>
56   /// コンストラクタ
57   /// </summary>
58   /// <remarks>
59   /// すべてのメソッドにInterceptする場合はこのコンストラクタをつかいます。
60   /// </remarks>
61   /// <param name="methodInterceptor">IMethodInterceptor</param>
62 2 public AspectImpl(IMethodInterceptor methodInterceptor)
63   : this(methodInterceptor,null)
64   {
65   }
66  
67   #region IAspect メンバ
68  
69   /// <summary>
70   /// Advice(Interceptor)
71   /// </summary>
72   public IMethodInterceptor MethodInterceptor
73   {
74 64 get
75   {
76 64 return methodInterceptor_;
77   }
78   }
79  
80   /// <summary>
81   /// Pointcut
82   /// </summary>
83   public IPointcut Pointcut
84   {
85 70 get
86   {
87 70 return pointcut_;
88   }
89 0 set
90   {
91   pointcut_ = value;
92   }
93   }
94  
95   #endregion
96  
97   } // AspectImpl
98   }
99