org.springframework.context.annotation
Class ConfigurationClassEnhancer.GetObjectMethodInterceptor

java.lang.Object
  extended by 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)

Field Summary
private  ConfigurableBeanFactory beanFactory
           
private  java.lang.String beanName
           
 
Constructor Summary
ConfigurationClassEnhancer.GetObjectMethodInterceptor(ConfigurableBeanFactory beanFactory, java.lang.String beanName)
           
 
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
 

Field Detail

beanFactory

private final ConfigurableBeanFactory beanFactory

beanName

private final java.lang.String beanName
Constructor Detail

ConfigurationClassEnhancer.GetObjectMethodInterceptor

public ConfigurationClassEnhancer.GetObjectMethodInterceptor(ConfigurableBeanFactory beanFactory,
                                                             java.lang.String beanName)
Method Detail

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