|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.support.DefaultListableBeanFactory org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory
public class ReloadAwareAutowireCapableBeanFactory extends DefaultListableBeanFactory
A BeanFactory that can deal with class cast exceptions that may occur due to class reload events and then attempt to reload the bean being instantiated to avoid them. Caches autowiring for beans (mainly controllers & domain class instances). Bypasses autowiring if there are no beans for the properties in the class. Caching is only used in environments where reloading is not enabled.
Constructor Summary | |
ReloadAwareAutowireCapableBeanFactory()
Default constructor. |
Method Summary | |
---|---|
void
|
autowireBeanProperties(java.lang.Object existingBean, int autowireMode, boolean dependencyCheck)
|
protected void
|
autowireByName(java.lang.String beanName, AbstractBeanDefinition mbd, BeanWrapper bw, MutablePropertyValues pvs)
|
protected java.lang.Object
|
doCreateBean(java.lang.String beanName, RootBeanDefinition mbd, Object[] args)
|
protected boolean
|
isExcludedFromDependencyCheck(java.beans.PropertyDescriptor pd)
|
Constructor Detail |
---|
public ReloadAwareAutowireCapableBeanFactory()
Method Detail |
---|
@Override public void autowireBeanProperties(java.lang.Object existingBean, int autowireMode, boolean dependencyCheck)
@Override protected void autowireByName(java.lang.String beanName, AbstractBeanDefinition mbd, BeanWrapper bw, MutablePropertyValues pvs)
@Override protected java.lang.Object doCreateBean(java.lang.String beanName, RootBeanDefinition mbd, Object[] args)
@Override protected boolean isExcludedFromDependencyCheck(java.beans.PropertyDescriptor pd)
Groovy Documentation