1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.acegisecurity.util;
17
18 import org.aopalliance.intercept.MethodInvocation;
19
20 import java.lang.reflect.AccessibleObject;
21 import java.lang.reflect.Method;
22
23
24 /***
25 * Represents the AOP Alliance <code>MethodInvocation</code>.
26 *
27 * @author Ben Alex
28 * @version $Id: SimpleMethodInvocation.java,v 1.1 2005/11/25 04:17:24 benalex Exp $
29 */
30 public class SimpleMethodInvocation implements MethodInvocation {
31
32
33 private Method method;
34 private Object[] arguments;
35
36
37
38 public SimpleMethodInvocation(Method method, Object[] arguments) {
39 this.method = method;
40 this.arguments = arguments;
41 }
42
43 public SimpleMethodInvocation() {}
44
45
46
47 public Object[] getArguments() {
48 return arguments;
49 }
50
51 public Method getMethod() {
52 return method;
53 }
54
55 public AccessibleObject getStaticPart() {
56 throw new UnsupportedOperationException("mock method not implemented");
57 }
58
59 public Object getThis() {
60 throw new UnsupportedOperationException("mock method not implemented");
61 }
62
63 public Object proceed() throws Throwable {
64 throw new UnsupportedOperationException("mock method not implemented");
65 }
66 }