Package de.bmiag.tapir.util.aop
Class AopUtils
- java.lang.Object
-
- de.bmiag.tapir.util.aop.AopUtils
-
public class AopUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AopUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
unwrapProxy(java.lang.Object bean, java.lang.Boolean recursive)
This is a utility method for getting raw objects that may have been proxied.
-
-
-
Method Detail
-
unwrapProxy
public static java.lang.Object unwrapProxy(java.lang.Object bean, java.lang.Boolean recursive)
This is a utility method for getting raw objects that may have been proxied. It is intended to be used in cases where raw implementations are needed rather than working with interfaces which they implement.- Parameters:
bean
- the potential proxy.recursive
- whether to procceeed recursively through nested proxies.- Returns:
- the unwrapped bean or
null
if target bean isnull
. Ifrecursive
parameter istrue
then returns the most inner unwrapped bean, otherwise the nearest target bean is returned. Based on this Spring forum topic. - Since:
- 3.0.0
- See Also:
Advised
-
-