|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.jcoderz.commons.util.LoggingProxy
public final class LoggingProxy
This class can be used to proxy any object, providing entering and exiting logging for all interfaces of the object.
Note: Java Dynamic Proxies only work on interfaces.
The object returned by the getProxy(Object)
can be cast to
any interface implemented by the argument or one of its ancestors. It
can't, however, be cast to an implementation class.
Method Summary | |
---|---|
static |
getProxy( obj)
Static factory that wraps an object into a proxy depending on the log level for that object. |
|
invoke( proxy,
method,
[] args)
Log the entering, exiting and throwing events of the proxied object. |
Methods inherited from class java.lang. |
---|
, , , , , , , , , , |
Method Detail |
---|
public static getProxy( obj)
obj
- an object for which a proxy should be created
public invoke( proxy, method, [] args) throws
in interface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |