Springframeworkでどこかのクラスに定義されている定数(static final)値を設定するには
以下のように定義するようです。
<bean id="printer" class="gsf.samples.springframework.sample001.ConsolePrinter"> <property name="message"> <bean id="gsf.samples.springframework.sample001.Printable.DEFAULT_MESSAGE" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean"/> </property> </bean>
・・・・・・・面倒くさいですね。
http://www.springframework.org/docs/reference/beans.html
の
3.16. Setting a bean property or constructor arg from a field value
に記述があります。(どうやってやるのかわからず結構探しましたw)