if (invocation instanceof MethodInvocation)
{
// For non-advised methods, we can only do public method invocations
org.jboss.aop.joinpoint.MethodInvocation methodInvocation = (org.jboss.aop.joinpoint.MethodInvocation)invocation;
long methodHash = methodInvocation.getMethodHash();
HashMap methodMap = ClassProxyFactory.getMethodMap(obj.getClass());
MethodPersistentReference ref = (MethodPersistentReference)methodMap.get(new Long(methodHash));
Method method = (Method)ref.get();
Object[] args = methodInvocation.getArguments();
try
{
return method.invoke(obj, args);
}
catch (InvocationTargetException ex)
{
throw ex.getTargetException();
}
}
else
{
throw new RuntimeException("field invocations not implemented");
}