| | MethodInvokingFactoryBean (Spring Framework) |
 | | This factory bean is still useful though when you need to call a method which doesn't return any value (for example, a static class method to force some sort of initialization to happen). |
 | | Note that as it is expected to be used mostly for accessing factory methods, this factory by default operates in a singleton fashion. |
 | | While the user of the factory bean is presumably calling the method to perform some sort of initialization, and doesn't care about any return value, all factory beans must return a value, so this special singleton instance is used for this case. |
| www.springframework.org /docs/api/org/springframework/beans/factory/config/MethodInvokingFactoryBean.html (791 words) |