Home
last modified time | relevance | path

Searched refs:InvocationHandler (Results 1 – 25 of 36) sorted by relevance

12

/external/mockito/cglib-and-asm/src/org/mockito/cglib/proxy/
DProxy.java40 protected InvocationHandler h;
56 protected Proxy(InvocationHandler h) { in Proxy()
63 protected ProxyImpl(InvocationHandler h) { in ProxyImpl()
68 public static InvocationHandler getInvocationHandler(Object proxy) { in getInvocationHandler()
80 InvocationHandler.class, in getProxyClass()
92 …public static Object newProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler h)… in newProxyInstance()
95 …return clazz.getConstructor(new Class[]{ InvocationHandler.class }).newInstance(new Object[]{ h }); in newProxyInstance()
DInvocationHandler.java27 public interface InvocationHandler interface
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingTestCase.java25 import java.lang.reflect.InvocationHandler;
65 InvocationHandler handler = new InvocationHandler() { in createProxyInstance()
123 InvocationHandler handler = new InvocationHandler() { in getDefaultValue()
/external/dexmaker/src/main/java/com/google/dexmaker/stock/
DProxyBuilder.java31 import java.lang.reflect.InvocationHandler;
136 private InvocationHandler handler;
160 public ProxyBuilder<T> handler(InvocationHandler handler) { in handler()
295 private static void setHandlerInstanceField(Object instance, InvocationHandler handler) { in setHandlerInstanceField()
328 public static InvocationHandler getInvocationHandler(Object instance) { in getInvocationHandler()
332 return (InvocationHandler) field.get(instance); in getInvocationHandler()
358 TypeId<InvocationHandler> handlerType = TypeId.get(InvocationHandler.class); in generateCodeForAllMethods()
360 FieldId<G, InvocationHandler> handlerField = in generateCodeForAllMethods()
366 MethodId<InvocationHandler, Object> methodInvoke = handlerType.getMethod(TypeId.OBJECT, in generateCodeForAllMethods()
425 Local<InvocationHandler> localHandler = code.newLocal(handlerType); in generateCodeForAllMethods()
[all …]
/external/dexmaker/src/test/java/com/google/dexmaker/stock/
DProxyBuilderTest.java23 import java.lang.reflect.InvocationHandler;
258 public static class InvokeSuperHandler implements InvocationHandler {
324 InvocationHandler handler = new InvocationHandler() { in testSinglePrimitiveParameter()
401 InvocationHandler delegatesOddValues = new InvocationHandler() { in testSometimesDelegateToSuper()
422 InvocationHandler handler = new InvocationHandler() { in testCallSuperThrows()
681 InvocationHandler invocationHandler = new InvocationHandler() { in testImplementInterfaceCallingThroughConcreteClass()
705 InvocationHandler invocationHandler = new InvocationHandler() { in testImplementInterfaceCallingThroughInterface()
739 InvocationHandler handler = new InvocationHandler() { in testInterfacesSameNamesDifferentReturnTypes()
829 private static class FakeInvocationHandler implements InvocationHandler {
/external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/
DDexmakerMockMaker.java21 import java.lang.reflect.InvocationHandler;
41 InvocationHandler invocationHandler = new InvocationHandlerAdapter(handler); in createMock()
85 InvocationHandler invocationHandler = Proxy.getInvocationHandler(mock); in getInvocationHandlerAdapter()
92 InvocationHandler invocationHandler = ProxyBuilder.getInvocationHandler(mock); in getInvocationHandlerAdapter()
DInvocationHandlerAdapter.java20 import java.lang.reflect.InvocationHandler;
33 final class InvocationHandlerAdapter implements InvocationHandler {
/external/guava/guava-tests/test/com/google/common/reflect/
DReflectionTest.java23 import java.lang.reflect.InvocationHandler;
51 private static final InvocationHandler X_RETURNER = new InvocationHandler() {
/external/easymock/src/org/easymock/internal/
DIProxyFactory.java18 import java.lang.reflect.InvocationHandler;
21 T createProxy(Class<T> toMock, InvocationHandler handler); in createProxy()
DJavaProxyFactory.java18 import java.lang.reflect.InvocationHandler;
23 public T createProxy(Class<T> toMock, InvocationHandler handler) { in createProxy()
DMockInvocationHandler.java19 import java.lang.reflect.InvocationHandler;
22 public final class MockInvocationHandler implements InvocationHandler, Serializable {
DObjectMethodsFilter.java20 import java.lang.reflect.InvocationHandler;
24 public class ObjectMethodsFilter implements InvocationHandler, Serializable {
/external/guava/guava/src/com/google/common/util/concurrent/
DSimpleTimeLimiter.java26 import java.lang.reflect.InvocationHandler;
96 InvocationHandler handler = new InvocationHandler() { in newProxy()
190 Class<T> interfaceType, InvocationHandler handler) { in newProxy()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletTestUtils.java9 import java.lang.reflect.InvocationHandler;
31 private static class ThrowingInvocationHandler implements InvocationHandler {
99 private static class FakeHttpSessionHandler implements InvocationHandler, Serializable {
/external/guice/core/src/com/google/inject/internal/
DDelegatingInvocationHandler.java22 import java.lang.reflect.InvocationHandler;
26 class DelegatingInvocationHandler<T> implements InvocationHandler {
/external/guava/guava/src/com/google/common/reflect/
DReflection.java24 import java.lang.reflect.InvocationHandler;
87 Class<T> interfaceType, InvocationHandler handler) { in newProxy()
DAbstractInvocationHandler.java21 import java.lang.reflect.InvocationHandler;
45 public abstract class AbstractInvocationHandler implements InvocationHandler {
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
DJpaPersistModule.java36 import java.lang.reflect.InvocationHandler;
119 InvocationHandler finderInvoker = new InvocationHandler() { in bindFinder()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/debuggee/
DProxyDebuggee.java24 import java.lang.reflect.InvocationHandler;
43 static class ProxyInvocationHandler implements InvocationHandler {
/external/littlemock/src/com/google/testing/littlemock/
DLittleMock.java23 import java.lang.reflect.InvocationHandler;
586 private static class DefaultInvocationHandler implements InvocationHandler {
684 return createProxy(clazz, new InvocationHandler() {
706 return createProxy(clazz, new InvocationHandler() {
1157 InvocationHandler invocationHandler = Proxy.getInvocationHandler(mock);
1175 InvocationHandler invocationHandler = Proxy.getInvocationHandler(methodHandler);
1195 private static Object createProxy(Class<?> clazz, final InvocationHandler handler) {
1208 InvocationHandler methodFilterHandler = new InvocationHandler() {
1239 InvocationHandler methodHandlerHandler = new InvocationHandler() {
1241 public InvocationHandler $$getOriginal() {
/external/slf4j/slf4j-api/src/test/java/org/slf4j/helpers/
DSubstitutableLoggerTest.java27 import java.lang.reflect.InvocationHandler;
72 private class LoggerInvocationHandler implements InvocationHandler {
/external/javassist/src/main/javassist/bytecode/annotation/
DAnnotationImpl.java18 import java.lang.reflect.InvocationHandler;
37 public class AnnotationImpl implements InvocationHandler {
239 InvocationHandler ih = Proxy.getInvocationHandler(obj); in checkEquals()
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider.java41 import java.lang.reflect.InvocationHandler;
336 InvocationHandler invocationHandler = new InvocationHandler() { in get()
/external/dexmaker/
Dbug-10862083.patch5 @@ -45,11 +45,6 @@ final class InvocationHandlerAdapter implements InvocationHandler {
/external/conscrypt/src/test/java/org/conscrypt/
DDuckTypedPSKKeyManagerTest.java21 import java.lang.reflect.InvocationHandler;
302 static class MockInvocationHandler implements InvocationHandler {

12