public static interface ConfigurationClassEnhancer.EnhancedConfiguration extends DisposableBean, BeanFactoryAware
ConfigurationClassEnhancer.enhance(Class)
through checking to see if candidate classes are already assignable to it, e.g.
have already been enhanced.
Also extends DisposableBean
and BeanFactoryAware
, as all
enhanced @Configuration
classes require access to the BeanFactory
that created them and must de-register static CGLIB callbacks on destruction,
which is handled by the (private) DisposableBeanMethodInterceptor
.
Note that this interface is intended for framework-internal use only, however must remain public in order to allow access to subclasses generated from other packages (i.e. user code).
destroy
setBeanFactory