public class BeanProxy extends Object implements InvocationHandler
Even if you opt to eagerly load a bean, it will still be wrapped in a BeanProxy. This makes it possible to apply interceptors to eagerly loaded beans as well.
Only beanProviderMethods that don't return an interface will result in beans not being proxied.
The actual bean is not created before the first method call to it.
If an MethodInterceptor was supplied on the beanProviderMethod, the method invocation is intercepted.
| Modifier and Type | Method and Description |
|---|---|
Object |
getDelegate() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
public BeanProxy(BeanInfo beanInfo) throws InvocationTargetException, IllegalAccessException
Copyright © 2011-2013 SYSE. All Rights Reserved.