Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何传递BundleContext对 bean 定义 xml 中的引用?
BundleContext
你可以这样做:
<bean name="myBean" class="my.Class"> <property name="bundleContext" ref="bundleContext" /> </bean>