gpt4 book ai didi

java - 如何在 SpringDM 中将 bundleContext 引用传递给 bean

转载 作者:行者123 更新时间:2023-11-29 05:54:14 25 4
gpt4 key购买 nike

如何在 bean 定义 xml 中传递对 BundleContext 的引用?

最佳答案

你可以这样做:

<bean name="myBean" class="my.Class">
<property name="bundleContext" ref="bundleContext" />
</bean>

关于java - 如何在 SpringDM 中将 bundleContext 引用传递给 bean,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12786169/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com