|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.cglib.MyProxy
public class MyProxy
See EnhancerTest
Field Summary | |
---|---|
private MyConcreteClass |
myConcreteClass
|
Constructor Summary | |
---|---|
MyProxy(MyConcreteClass myConcreteClass)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private MyConcreteClass myConcreteClass
Constructor Detail |
---|
public MyProxy(MyConcreteClass myConcreteClass)
Method Detail |
---|
public java.lang.Object intercept(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args, MethodProxy proxy) throws java.lang.Throwable
MethodInterceptor
intercept
in interface MethodInterceptor
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
java.lang.Throwable
- any exception may be thrown; if so, super method will not be invokedMethodProxy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |