Ask Your Question

Dependency resolution question

asked 2014-06-10 15:36:18 -0700

CobyS gravatar image

When using AbstractBindingConsumer and onSessionInitialized there is a need to resolve dependencies. Right now I am using ServiceHelper.getInstance to obtain a reference to the object that I depend on. If this object has not been started this becomes a null reference when the getInstance function is called. I have seen code that uses felix dependency manager in Activators that are not derived from AbstractBindingConsumer.

What is the recommended way to both register and resolve dependencies(from other bundles) when your activator is derived from AbstractBindingAwareConsumer?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-18 04:09:24 -0700

Robert Varga gravatar image

These APIs have been superseded in Helium release by the OSGi-agnostic APIs and configuration subsystem activation.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2014-06-10 15:36:18 -0700

Seen: 62 times

Last updated: Feb 18 '15