Top Fields Constructors Methods
org.jvnet.hk2.internal

public Class MethodInterceptorImpl

extends Object
implements MethodHandler
Class Inheritance
All Implemented Interfaces
javassist.util.proxy.MethodHandler
Imports
java.lang.ref.WeakReference, java.lang.reflect.Method, javassist.util.proxy.MethodHandler, org.glassfish.hk2.api.ActiveDescriptor, .Context, .Injectee, .MultiException, .ProxyCtl, org.glassfish.hk2.utilities.reflection.ReflectionHelper

Authors
jwells, mtaube

Field Summary

Modifier and TypeField and Description
private final ActiveDescriptor<?>
private static final String
private final ServiceLocatorImpl
private final WeakReference<Injectee>
myInjectee

Actual injectee, needed for InstantiationService

private static final String
private final ServiceHandleImpl<?>
root

Original root node, needed for proper destruction

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private Object
internalInvoke(Object target, Method method, Method proceed, Object[] params)

public Object
invoke(Object target, Method method, Method proceed, Object[] params)

Implements javassist.util.proxy.MethodHandler.invoke.

Is called when a method is invoked on a proxy instance associated with this handler.

private static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptorback to summary
private final ActiveDescriptor<?> descriptor
EQUALS_NAMEback to summary
private static final String EQUALS_NAME
locatorback to summary
private final ServiceLocatorImpl locator
myInjecteeback to summary
private final WeakReference<Injectee> myInjectee

Actual injectee, needed for InstantiationService

PROXY_MORE_METHOD_NAMEback to summary
private static final String PROXY_MORE_METHOD_NAME
rootback to summary
private final ServiceHandleImpl<?> root

Original root node, needed for proper destruction

Constructor Detail

MethodInterceptorImplback to summary
pack-priv MethodInterceptorImpl(ServiceLocatorImpl sli, ActiveDescriptor<?> descriptor, ServiceHandleImpl<?> root, Injectee injectee)

Method Detail

internalInvokeback to summary
private Object internalInvoke(Object target, Method method, Method proceed, Object[] params) throws Throwable
invokeback to summary
public Object invoke(Object target, Method method, Method proceed, Object[] params) throws Throwable

Implements javassist.util.proxy.MethodHandler.invoke.

Doc from javassist.util.proxy.MethodHandler.invoke.

Is called when a method is invoked on a proxy instance associated with this handler. This method must process that method invocation.

Annotations
@Override
Exceptions
Throwable:
if the method invocation fails.
isEqualsback to summary
private static boolean isEquals(Method m)