I'm using javassist.util.proxy.ProxyFactory
to create some proxies in my project. And in some other part of the code I would like to be able to check if an object is proxied or not.
So my question is: is there a way to check if an object is a proxy or not?
For instance, I have a class User and when I make a proxy object of it, in debugger it's class is User_$$_javassist_11
. Is there something analogous to instanceof
which I can use for this purpose?