Package com.opensymphony.xwork2.util
Class ProxyUtil
java.lang.Object
com.opensymphony.xwork2.util.ProxyUtil
ProxyUtil
Various utility methods dealing with proxies
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check whether the given object is a proxy.static boolean
isProxyMember
(Member member, Object object) Check whether the given member is a proxy member of a proxy object or is a static proxy member.static Class<?>
ultimateTargetClass
(Object candidate) Determine the ultimate target class of the given instance, traversing not only a top-level proxy but any number of nested proxies as well — as long as possible without side effects.
-
Constructor Details
-
ProxyUtil
public ProxyUtil()
-
-
Method Details
-
ultimateTargetClass
Determine the ultimate target class of the given instance, traversing not only a top-level proxy but any number of nested proxies as well — as long as possible without side effects.- Parameters:
candidate
- the instance to check (might be a proxy)- Returns:
- the ultimate target class (or the plain class of the given
object as fallback; never
null
)
-
isProxy
Check whether the given object is a proxy.- Parameters:
object
- the object to check
-
isProxyMember
Check whether the given member is a proxy member of a proxy object or is a static proxy member.- Parameters:
member
- the member to checkobject
- the object to check
-