| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private final Map | |
| private final ServiceLocatorImpl | |
| private final ActiveDescriptor |
| Access | Constructor and Description |
|---|---|
| pack-priv | MethodInterceptorHandler(ServiceLocatorImpl locator, ActiveDescriptor<?> underlyingDescriptor, Map<Method, List<MethodInterceptor>> interceptorLists)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| DEBUG_INTERCEPTION | back to summary |
|---|---|
| private static final boolean DEBUG_INTERCEPTION | |
| interceptorLists | back to summary |
|---|---|
| private final Map<Method, List<MethodInterceptor>> interceptorLists | |
| locator | back to summary |
|---|---|
| private final ServiceLocatorImpl locator | |
| underlyingDescriptor | back to summary |
|---|---|
| private final ActiveDescriptor<?> underlyingDescriptor | |
| MethodInterceptorHandler | back to summary |
|---|---|
| pack-priv MethodInterceptorHandler(ServiceLocatorImpl locator, ActiveDescriptor<?> underlyingDescriptor, Map<Method, List<MethodInterceptor>> interceptorLists) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object self, Method thisMethod, Method proceed, Object[] args) throws Throwable Implements javassist. Doc from javassist. Is called when a method is invoked on a proxy instance associated with this handler. This method must process that method invocation. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private final int | |
| private final List | |
| private final Method | |
| private final Object | |
| private final Method | |
| private HashMap |
| Access | Constructor and Description |
|---|---|
| private | MethodInvocationImpl(Object[] arguments, Method method, Object myself, List<MethodInterceptor> interceptors, int index, Method proceed, HashMap<String, Object> userData)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object[] | getArguments()
Implements org. Get the arguments as an array object. |
| public Method | getMethod()
Implements org. Get the method being called. |
| public AccessibleObject | getStaticPart()
Implements org. Return the static part of this joinpoint. |
| public Object | getThis()
Implements org. Return the object that holds the current joinpoint's static part. |
| public Object | getUserData(String key)
Implements org. Gets the user data associated with the given key |
| public Object | proceed()
Implements org. Proceed to the next interceptor in the chain. |
| public void | setUserData(String key, Object data)
Implements org. Sets the user data to be associated with the invocation frame. |
| arguments | back to summary |
|---|---|
| private final Object[] arguments | |
| index | back to summary |
|---|---|
| private final int index | |
| interceptors | back to summary |
|---|---|
| private final List<MethodInterceptor> interceptors | |
| method | back to summary |
|---|---|
| private final Method method | |
| myself | back to summary |
|---|---|
| private final Object myself | |
| proceed | back to summary |
|---|---|
| private final Method proceed | |
| userData | back to summary |
|---|---|
| private HashMap<String, Object> userData | |
| MethodInvocationImpl | back to summary |
|---|---|
| private MethodInvocationImpl(Object[] arguments, Method method, Object myself, List<MethodInterceptor> interceptors, int index, Method proceed, HashMap<String, Object> userData) | |
| 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.
| |
| getUserData | back to summary |
|---|---|
| public Object getUserData(String key) Implements org. Doc from org. Gets the user data associated with the given key
| |
| 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). | |
| setUserData | back to summary |
|---|---|
| public void setUserData(String key, Object data) Implements org. Doc from org. Sets the user data to be associated with the invocation frame. The key may not be null. If data is null then the data associated with the key is removed
| |