Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

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
0

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
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

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

Seen: 63 times

Last updated: Feb 18 '15