org.springframework.context.annotation
Class ConfigurationClassEnhancer.DisposableBeanMethodInterceptor

java.lang.Object
  extended by org.springframework.context.annotation.ConfigurationClassEnhancer.DisposableBeanMethodInterceptor
Enclosing class:
ConfigurationClassEnhancer

private static class ConfigurationClassEnhancer.DisposableBeanMethodInterceptor
extends java.lang.Object

Intercepts the invocation of any DisposableBean.destroy() on @Configuration class instances for the purpose of de-registering CGLIB callbacks. This helps avoid garbage collection issues See SPR-7901.

See Also:
ConfigurationClassEnhancer.EnhancedConfiguration

Constructor Summary
private ConfigurationClassEnhancer.DisposableBeanMethodInterceptor()
           
 
Method Summary
 java.lang.Object intercept(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args, MethodProxy proxy)
           
static boolean isDestroyMethod(java.lang.reflect.Method candidateMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationClassEnhancer.DisposableBeanMethodInterceptor

private ConfigurationClassEnhancer.DisposableBeanMethodInterceptor()
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

isDestroyMethod

public static boolean isDestroyMethod(java.lang.reflect.Method candidateMethod)