0
を変更、私はspringDM今すぐプロパティspringDM設定管理バルク特性は、そう
<beans:beans xmlns="http://www.springframework.org/schema/osgi-compendium"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi-compendium
http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd">
<beans:bean id="configurationBean" class="com.eugene.PropertiesBean">
<osgix:managed-properties persistent-id="MyPid" update-strategy="container-managed"/>
<beans:property name="host" value="localhost"></beans:property>
<beans:property name="port" value="5698"></beans:property>
</beans:bean>
</beans:beans>
を管理している、ここで私は何をすべきかです。バンドルをVirgoにデプロイすると、すべて正常に動作し、デフォルトプロパティ(MyPid.propertiesがデプロイされていないため)がBeanに注入されます。
Deploy MyPid.properties両方のホストとポートが変更された場合は、両方とも再注入されます。
これは素晴らしいことです。しかし、ここには、豆が変わったと私に伝える一つの方法がありますか?プロパティは再注入されましたか?何かが好きです:XML設定のafterPropertiesSetやinit? afterPropertiesSetやinitを持っているのは、プロパティが最初に注入されるときだけであり、2番目、3番目などは注入されないからです。これは何とか論理です。
春のDMがこのようなことを提供するのであれば私は知らない(googleed)。
Thx!ユージン。