| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Seasar.Framework.Aop\IMethodInvocation.cs | - | - | - | - |
|
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 | using System.Reflection; | |
21 | ||
22 | namespace Seasar.Framework.Aop | |
23 | { | |
24 | /// <summary> | |
25 | /// Interceptorからインターセプトされているメソッドの情報にアクセスするためのインターフェイス | |
26 | /// </summary> | |
27 | /// <remarks> | |
28 | /// このインターフェイスはAOPアライアンス準拠。 | |
29 | /// </remarks> | |
30 | /// <seealso href="http://aopalliance.sourceforge.net/doc/index.html">AOP Alliance</seealso> | |
31 | public interface IMethodInvocation | |
32 | { | |
33 | ||
34 | /// <summary> | |
35 | /// InterceptされるメソッドのMethodBase | |
36 | /// </summary> | |
37 | MethodBase Method { get; } | |
38 | ||
39 | /// <summary> | |
40 | /// Interceptされるオブジェクト | |
41 | /// </summary> | |
42 | Object Target { get; } | |
43 | ||
44 | /// <summary> | |
45 | /// Interceptされるメソッドの引数 | |
46 | /// </summary> | |
47 | Object[] Arguments { get; } | |
48 | ||
49 | /// <summary> | |
50 | /// 他にチェーンされているInterceptorがあれば、Interceptorを呼び出します(再帰的に呼び出される) | |
51 | /// 他にチェーンされているInterceptorが無ければ、Interceptされているメソッドを実行します | |
52 | /// </summary> | |
53 | /// <returns>Interceptされたメソッドの戻り値</returns> | |
54 | Object Proceed(); | |
55 | ||
56 | } /// IMethodInvocation | |
57 | } | |
58 |
|