File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Question about MethodInvokingFactoryBean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Question about MethodInvokingFactoryBean" Watch "Question about MethodInvokingFactoryBean" New topic

Question about MethodInvokingFactoryBean

Alex Armenteros
Ranch Hand

Joined: May 05, 2010
Posts: 75
I want to inject a value into an static field and found the workaround with the class MethodInvokingFactoryBean

on xml beans I think I must put this...

<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="staticMethod" value=""/>
<property name="arguments">
<ref bean="theDAOReference"/>

But I don't understand how or when this method will be called. Enlighten me please.
I agree. Here's the link:
subject: Question about MethodInvokingFactoryBean
It's not a secret anymore!