develog

[Spring] static method injection 본문

Dev/Spring

[Spring] static method injection

냐옴 2014. 11. 11. 11:36

<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">

    <property name="staticMethod" value="aa.bb.cc.StaticClass.StaticMethod" />

    <property name="arguments">

        <list>

            <ref bean="refBeanName" />

        </list>

    </property>

</bean>

'Dev > Spring' 카테고리의 다른 글

[Spring] beans.xml  (0) 2015.06.04
[Spring] Spring3 AOP 설정, xml or java  (0) 2015.06.04
[Spring] Spring 2.5, Properties #2  (0) 2014.11.11
[Spring] Spring 2.5, Properties  (0) 2014.11.10
[Spring] beans xml schema  (0) 2014.10.15
Comments