public class AopUtils extends Object
Constructor and Description |
---|
AopUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
unwrapProxy(Object bean,
Boolean recursive)
This is a utility method for getting raw objects that may have been proxied.
|
public static Object unwrapProxy(Object bean, Boolean recursive)
bean
- the potential proxy.recursive
- whether to procceeed recursively through nested proxies.null
if target bean is null
. If recursive
parameter is
true
then returns the most inner unwrapped bean, otherwise the nearest target bean is returned.
Based on this Spring forum topic.Advised
Copyright © 2018–2020 b+m Informatik AG. All rights reserved.