public class CglibProxyFactory extends Object implements ProxyFactory, ObjectReferenceRetriever, TestCaseListener
| Constructor and Description |
|---|
CglibProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTestCase() |
void |
beforeTestCase(Object testCase,
String method) |
void |
clear()
Clear the state of the proxy factory
|
Object |
createInterfaceInterceptionProxy(Class itf,
String id) |
Object |
createInterfaceProxy(Class clazz,
String id)
Implementations must create a proxy to an interface of the specified class.
|
Object |
createObjectInterceptionProxy(Class clazz,
Class[] parameterTypes,
Object[] parameters,
String id)
Implementations must create an intercepting proxy to an object of the specified class using the specified signature
providing the specified arguments
|
Object |
createObjectInterceptionProxy(Class clazz,
Object[] parameters,
String id)
Implementations creates an intercepting proxy to an object of the specified type if there
is one and only one constructor assignable from the provided arguments
|
Object |
createObjectMockProxy(Class clazz,
Class[] parameterTypes,
Object[] parameters,
String id)
Implementations must create a mocking proxy to an object of the specified class using the specified signature
providing the specified arguments
|
Object |
createObjectMockProxy(Class clazz,
Object[] parameters,
String id)
Implementations creates a mocking proxy to an object of the specified type if there
is one and only one constructor assignable from the provided arguments
|
Object |
createObjectMonitorProxy(Class clazz,
Class[] parameterTypes,
Object[] parameters,
String id)
Implementation must create an intercepting proxy of the given class with the given arguments by using the constructor taking the
parameter types provided.
|
Object |
createObjectMonitorProxy(Class clazz,
Object[] parameters,
String string)
Implementation must create an intercepting proxy of the given class by finding the most suitable constructor.
|
ObjectReference |
getObjectReferenceFromProxy(Object object) |
ObjectReference |
getObjectReferenceFromStackTrace(String stacktrace,
int lineToUse) |
void |
setExpectationState(ExpectationsState expectationsState) |
void |
setInvocationHandler(InvocationHandler invocationHandler) |
void |
setInvocationListener(InvocationListener invocationListener) |
public Object createInterfaceProxy(Class clazz, String id)
ProxyFactorycreateInterfaceProxy in interface ProxyFactoryid - Unique id for the proxycom.agical.rmock.core.ProxyFactory#create(java.lang.Class)public Object createObjectMockProxy(Class clazz, Object[] parameters, String id)
ProxyFactorycreateObjectMockProxy in interface ProxyFactoryid - Unique id for the proxypublic Object createObjectMockProxy(Class clazz, Class[] parameterTypes, Object[] parameters, String id)
ProxyFactorycreateObjectMockProxy in interface ProxyFactoryid - Unique id for the proxypublic Object createObjectInterceptionProxy(Class clazz, Object[] parameters, String id)
ProxyFactorycreateObjectInterceptionProxy in interface ProxyFactoryid - Unique id for the proxypublic Object createObjectInterceptionProxy(Class clazz, Class[] parameterTypes, Object[] parameters, String id)
ProxyFactorycreateObjectInterceptionProxy in interface ProxyFactoryid - Unique id for the proxypublic void clear()
ProxyFactoryclear in interface ProxyFactorypublic void setInvocationHandler(InvocationHandler invocationHandler)
public void setExpectationState(ExpectationsState expectationsState)
public void setInvocationListener(InvocationListener invocationListener)
public Object createObjectMonitorProxy(Class clazz, Object[] parameters, String string)
ProxyFactorycreateObjectMonitorProxy in interface ProxyFactorypublic Object createObjectMonitorProxy(Class clazz, Class[] parameterTypes, Object[] parameters, String id)
ProxyFactorycreateObjectMonitorProxy in interface ProxyFactorypublic ObjectReference getObjectReferenceFromStackTrace(String stacktrace, int lineToUse)
getObjectReferenceFromStackTrace in interface ObjectReferenceRetrieverpublic ObjectReference getObjectReferenceFromProxy(Object object)
getObjectReferenceFromProxy in interface ObjectReferenceRetrieverpublic void beforeTestCase(Object testCase, String method)
beforeTestCase in interface TestCaseListenerpublic void afterTestCase()
afterTestCase in interface TestCaseListenerpublic Object createInterfaceInterceptionProxy(Class itf, String id)
createInterfaceInterceptionProxy in interface ProxyFactoryCopyright © 2005-2013 Agical AB. All Rights Reserved.