I have an application where I have to use Spring to load a bean based on some business conditions inside an OSGi bundle. This bean is not meant for export and is used for calculation inisde my bundle. Basically I have an actual service component, which is exported, and it has to use this Spring bean internally. But...
- When I use Spring DM the extender loads the application context in a seperate thread. How to access the context file inside my bundle?
- How to make sure extender thread finshes loading application context so that i can use it in my bundle?
- I don't want to export the application context as services as Spring DM does, as it's only used inside my bundle for internal purposes.
Is there any way to do this?