net.sf.cglib
Class NoOpInterceptor
java.lang.Object
net.sf.cglib.NoOpInterceptor
- All Implemented Interfaces:
- MethodInterceptor
- public class NoOpInterceptor
- extends java.lang.Object
- implements MethodInterceptor
An implementation of MethodInterceptor that does nothing except call the original method.
- Version:
- $Id: NoOpInterceptor.java,v 1.7 2003/05/23 23:18:45 herbyderby Exp $
Method Summary |
java.lang.Object |
intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
All generated proxied methods call this method instead of the original method. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final NoOpInterceptor INSTANCE
NoOpInterceptor
public NoOpInterceptor()
intercept
public java.lang.Object intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
throws java.lang.Throwable
- Description copied from interface:
MethodInterceptor
- All generated proxied methods call this method instead of the original method.
The original method may either be invoked by normal reflection using the Method object,
or by using the MethodProxy (faster).
- Specified by:
intercept
in interface MethodInterceptor
- Parameters:
obj
- "this", the enhanced objectmethod
- intercepted Methodargs
- argument array; primitive types are wrappedproxy
- used to invoke super (non-intercepted method); may be called
as many times as needed
- Returns:
- any value compatible with the signature of the proxied method. Method returning void will ignore this value.
- Throws:
java.lang.Throwable
- any exception may be thrown; if so, super method will not be invoked- See Also:
MethodProxy
Copyright (c) 2001 - Apache Software Foundation