1 22 package org.jboss.joinpoint.plugins; 23 24 import org.jboss.joinpoint.spi.MethodJoinpoint; 25 import org.jboss.reflect.spi.MethodInfo; 26 27 32 public class BasicMethodJoinPoint extends BasicTargettedJoinPoint implements MethodJoinpoint 33 { 34 35 protected MethodInfo methodInfo; 36 37 38 protected Object [] arguments; 39 44 public BasicMethodJoinPoint(MethodInfo methodInfo) 45 { 46 this.methodInfo = methodInfo; 47 } 48 49 public MethodInfo getMethodInfo() 50 { 51 return methodInfo; 52 } 53 54 public Object [] getArguments() 55 { 56 return arguments; 57 } 58 59 public void setArguments(Object [] args) 60 { 61 this.arguments = args; 62 } 63 64 public Object dispatch() throws Throwable 65 { 66 return methodInfo.invoke(target, arguments); 67 } 68 69 public String toHumanReadableString() 70 { 71 return methodInfo.toString(); 72 } 73 } 74 | Popular Tags |