How do I get the underlying type of a proxy object in java? -
i'd access classname of underlying class instance of java.lang.reflect.proxy
.
is possible?
you can invocationhandler
proxy created, calling proxy.getinvocationhandler(proxy)
note in case of java.lang.reflect.proxy
there no underlying class per se. proxy defined by:
- interface(s)
- invocation handler
and wrapped class passed concrete invocation handler.
Comments
Post a Comment