|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.util.InvocationHandlerForUnitTestingByteWeavedClasses
public class InvocationHandlerForUnitTestingByteWeavedClasses
Invocation handler for unit testing byte-weaved classes. Use this InvocationHandler and utility method when Spring is unavailable to complete byte-weaving.
| Field Summary | |
|---|---|
protected Object[] |
objectsForByteWeaving
|
| Constructor Summary | |
|---|---|
InvocationHandlerForUnitTestingByteWeavedClasses(Object[] objectsForByteWeaving)
|
|
| Method Summary | ||
|---|---|---|
static
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object[] objectsForByteWeaving
| Constructor Detail |
|---|
public InvocationHandlerForUnitTestingByteWeavedClasses(Object[] objectsForByteWeaving)
| Method Detail |
|---|
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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||