Acts as a JDK InvocationHandler so the proxy using it can avoid Guice-specific types.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| pack-priv final MethodInterceptor[] | |
| pack-priv final Method | |
| pack-priv final BiFunction |
| Access | Constructor and Description |
|---|---|
| public | InterceptorStackCallback(Method method, List<MethodInterceptor> interceptors, BiFunction<Object, Object[], Object> superInvoker)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the unused, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or arguments)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. |
| private void | pruneStacktrace(Throwable throwable)
Removes stacktrace elements related to AOP internal mechanics from the throwable's stack trace and any causes it may have. |
| GUICE_INTERNAL_AOP_PACKAGE | back to summary |
|---|---|
| private static final String GUICE_INTERNAL_AOP_PACKAGE | |
| interceptors | back to summary |
|---|---|
| pack-priv final MethodInterceptor[] interceptors | |
| method | back to summary |
|---|---|
| pack-priv final Method method | |
| superInvoker | back to summary |
|---|---|
| pack-priv final BiFunction<Object, Object[], Object> superInvoker | |
| InterceptorStackCallback | back to summary |
|---|---|
| public InterceptorStackCallback(Method method, List<MethodInterceptor> interceptors, BiFunction<Object, Object[], Object> superInvoker) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method unused, Object[] arguments) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |
| pruneStacktrace | back to summary |
|---|---|
| private void pruneStacktrace(Throwable throwable) Removes stacktrace elements related to AOP internal mechanics from the throwable's stack trace and any causes it may have. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Object[] | |
| pack-priv final int | |
| pack-priv final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object[] | getArguments()
Implements org. |
| public Method | getMethod()
Implements org. |
| public AccessibleObject | getStaticPart()
Implements org. |
| public Object | getThis()
Implements org. |
| public Object | proceed()
Implements org. |
| arguments | back to summary |
|---|---|
| pack-priv final Object[] arguments | |
| interceptorIndex | back to summary |
|---|---|
| pack-priv final int interceptorIndex | |
| proxy | back to summary |
|---|---|
| pack-priv final Object proxy | |
| InterceptedMethodInvocation | back to summary |
|---|---|
| public InterceptedMethodInvocation(Object proxy, Object[] arguments, int interceptorIndex) | |
| getArguments | back to summary |
|---|---|
| public Object[] getArguments() Implements org. Doc from org. Get the arguments as an array object. It is possible to change element values within this array to change the arguments. | |
| getMethod | back to summary |
|---|---|
| public Method getMethod() Implements org. Doc from org. Get the method being called. This method is a friendly implementation of the
| |
| getStaticPart | back to summary |
|---|---|
| public AccessibleObject getStaticPart() Implements org. Doc from org. Return the static part of this joinpoint. The static part is an accessible object on which a chain of interceptors is installed.
| |
| getThis | back to summary |
|---|---|
| public Object getThis() Implements org. Doc from org. Return the object that holds the current joinpoint's static part. For instance, the target object for an invocation. | |
| proceed | back to summary |
|---|---|
| public Object proceed() throws Throwable Implements org. Doc from org. Proceed to the next interceptor in the chain. The implementation and the semantics of this method depends on the actual joinpoint type (see the children interfaces). | |