I have a doubt with regard to the new factory-bean factory-method introduced in the 1.1 release.
In general i find it a very good idea but i have found a problem while accessing a method from a bean defined in the container. Is there any reason so that the instantiateUsingFactoryMethod in the AbstractAutowireCapableBeanFactory only searches for static methods?
I would understand this for static factory methods dfined in some classes, but im confused with the line
if (Modifier.isStaticfactoryMethod.getModifiers()) &&
Which forces static attribute on an already context instantiated bean.
Thx for your time.