org.springframework.context.annotation
Class ConfigurationClassEnhancer.GetObjectMethodInterceptor
java.lang.Object
org.springframework.context.annotation.ConfigurationClassEnhancer.GetObjectMethodInterceptor
- Enclosing class:
- ConfigurationClassEnhancer
private static class ConfigurationClassEnhancer.GetObjectMethodInterceptor
- extends java.lang.Object
Intercepts calls to FactoryBean.getObject()
, delegating to calling
BeanFactory.getBean(String)
in order to respect caching / scoping.
- See Also:
ConfigurationClassEnhancer.DisposableBeanMethodInterceptor.intercept(Object, Method, Object[], MethodProxy)
,
BeanMethodInterceptor#enhanceFactoryBean(Class, String)
Method Summary |
java.lang.Object |
intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beanFactory
private final ConfigurableBeanFactory beanFactory
beanName
private final java.lang.String beanName
ConfigurationClassEnhancer.GetObjectMethodInterceptor
public ConfigurationClassEnhancer.GetObjectMethodInterceptor(ConfigurableBeanFactory beanFactory,
java.lang.String beanName)
intercept
public java.lang.Object intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
throws java.lang.Throwable
- Throws:
java.lang.Throwable