public class InvocationHandlerForUnitTestingByteWeavedClasses extends Object implements InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
objectsForByteWeaving |
| Constructor and Description |
|---|
InvocationHandlerForUnitTestingByteWeavedClasses(Object[] objectsForByteWeaving) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createProxy(Class<T> proxyType,
Class<?>[] interfaces,
Object[] objectsForByteWeaving)
This utility method will return a Proxy of a chosen type that response to an array of chose Interfaces and uses a
InvocationHandlerForUnitTestingByteWeavedClasses that is backed by an array of chosen Objects.
|
Object[] |
getObjectsForByteWeaving()
Returns an array of Objects that are meant to be byte-weaved.
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Will invoke a chosen method against an array of Objects that are meant to be byte-weaved together.
|
void |
setObjectsForByteWeaving(Object[] objects)
Sets an array of Objects that are meant to be byte-weaved.
|
protected Object[] objectsForByteWeaving
public InvocationHandlerForUnitTestingByteWeavedClasses(Object[] objectsForByteWeaving)
public static <T> T createProxy(Class<T> proxyType, Class<?>[] interfaces, Object[] objectsForByteWeaving)
proxyType - interfaces - objectsForByteWeaving - public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic Object[] getObjectsForByteWeaving()
public void setObjectsForByteWeaving(Object[] objects)
objects - Copyright © 2022. All rights reserved.