親のコンテキストでは、次のようにプロパティ宣言があります。
<bean id="my.properties"
class="com.rcslabs.webcall.server.property.PropertyPaceholderConfigurer">
<property name="locations" value="classpath:/my.properties"/>
</bean>
その後、実行時に子コンテキストを作成し、それらのプロパティを実行時データでオーバーライドする必要があります。それを行うための最良の方法は何ですか?
添加:
より正確には、次のように実行時に手動で子コンテキストを作成しています。
ClassPathXmlApplicationContext childAppContext = new ClassPathXmlApplicationContext(parentApplicationContext);
それで、通常BeanDefinitionRegistryで行われるように、childAppContextでBeanを宣言できますか?