|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.util.InterfaceWrapper
public class InterfaceWrapper
provides methods to generate special proxy objects that observe calls to specified interfaces
InterfaceMonitor,
Proxy| Method Summary | |
|---|---|
static Object |
wrapObject(ClassLoader cl,
Object object,
InterfaceMonitor monitor,
Class<?>... interfacesToObserve)
returns an object that - apart from implementing the given interfaces - monitors each call to the object through the interfaces. |
static Object |
wrapObject(Object obj,
InterfaceMonitor mon,
Class<?>... interfacesToObserve)
uses the ClassLoader from Settings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object wrapObject(Object obj,
InterfaceMonitor mon,
Class<?>... interfacesToObserve)
throws IllegalArgumentException
IllegalArgumentExceptionSettings.getClassLoader(),
wrapObject(ClassLoader, Object, InterfaceMonitor, Class...)
public static Object wrapObject(ClassLoader cl,
Object object,
InterfaceMonitor monitor,
Class<?>... interfacesToObserve)
throws IllegalArgumentException
IllegalArgumentException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||