alt.jiapi.jazzpect.interceptor
Class MInterceptor

java.lang.Object
  extended by alt.jiapi.jazzpect.interceptor.MInterceptor
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class MInterceptor
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Jazzpect MethodInterceptor. NOTE: We have a slightly different semantics here, which is a bit confusing: org.aopalliance.intercept.MethodInterceptor == InvokeHandler

MInterceptor should be renamed.

Author:
Mika Riekkinen

Constructor Summary
MInterceptor(org.aopalliance.intercept.MethodInterceptor mi)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object target, java.lang.reflect.Method m, java.lang.Object[] args)
          Called by Jiapi runtime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MInterceptor

public MInterceptor(org.aopalliance.intercept.MethodInterceptor mi)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object target,
                               java.lang.reflect.Method m,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Called by Jiapi runtime.

This method is a bridge between Jiapi interceptors and aopalliance interceptors. It creates org.aopalliance.intercept.MethodInvocation and passes it to rg.aopalliance.intercept.MethodInterceptor given in constructor.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable


Copyright © 2001. Documenation generated August 26 2011.