public class InvocationRecorder extends Object
InvocationRecorder
records method invocations against its generated proxies.Constructor and Description |
---|
InvocationRecorder(ProxyFactory proxyFactory)
Create a new InvocationRecorder instance.
|
Modifier and Type | Method and Description |
---|---|
List<RecordedInvocation> |
getRecordedInvocations()
Get the invocations that have been recorded up to this point.
|
<T> T |
proxy(Class<T> type)
Generate a recording proxy for the specified class.
|
<T> T |
proxy(Type genericType,
Class<T> type)
Generate a recording proxy for the specified class, qualified as
genericType . |
void |
reset()
Reset this
InvocationRecorder . |
public InvocationRecorder(ProxyFactory proxyFactory)
proxyFactory
- public List<RecordedInvocation> getRecordedInvocations()
List
of RecordedInvocation
public <T> T proxy(Class<T> type)
T
- type
- public <T> T proxy(Type genericType, Class<T> type)
genericType
.T
- genericType
- type
- public void reset()
InvocationRecorder
.Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.