Package com.google.inject.internal
Class InterceptorStackCallback
- java.lang.Object
-
- com.google.inject.internal.InterceptorStackCallback
-
- All Implemented Interfaces:
net.sf.cglib.proxy.Callback,net.sf.cglib.proxy.MethodInterceptor
final class InterceptorStackCallback extends java.lang.Object implements net.sf.cglib.proxy.MethodInterceptorIntercepts a method with a stack of interceptors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classInterceptorStackCallback.InterceptedMethodInvocation
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>AOP_INTERNAL_CLASSES(package private) org.aopalliance.intercept.MethodInterceptor[]interceptors(package private) java.lang.reflect.Methodmethod
-
Constructor Summary
Constructors Constructor Description InterceptorStackCallback(java.lang.reflect.Method method, java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectintercept(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] arguments, net.sf.cglib.proxy.MethodProxy methodProxy)private voidpruneStacktrace(java.lang.Throwable throwable)Removes stacktrace elements related to AOP internal mechanics from the throwable's stack trace and any causes it may have.
-
-
-
Method Detail
-
intercept
public java.lang.Object intercept(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] arguments, net.sf.cglib.proxy.MethodProxy methodProxy) throws java.lang.Throwable- Specified by:
interceptin interfacenet.sf.cglib.proxy.MethodInterceptor- Throws:
java.lang.Throwable
-
pruneStacktrace
private void pruneStacktrace(java.lang.Throwable throwable)
Removes stacktrace elements related to AOP internal mechanics from the throwable's stack trace and any causes it may have.
-
-