public class InterfaceOnlyProxyFactory extends Object implements ProxyFactory
ProxyFactory create proxies that implements all interfaces of
the underlying object including the marker interface
InterfaceOnlyProxy. But in contrast to the proxies created by
SubclassProxyFactory such a proxy does not subclass the class of the
underlying object.| Constructor and Description |
|---|
InterfaceOnlyProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createProxy(Class<?> targetClass,
org.mockito.cglib.proxy.MethodInterceptor interceptor)
Create a proxy.
|
public InterfaceOnlyProxyFactory()
public <T> T createProxy(Class<?> targetClass, org.mockito.cglib.proxy.MethodInterceptor interceptor)
ProxyFactorycreateProxy in interface ProxyFactoryT - The type parameter makes some casts redundant.targetClass - the class the factory shall create a proxy forinterceptor - the method interceptor that shall be applied to all method
calls.Copyright © 2014. All rights reserved.