We need to have a greedy policy here, otherwise we might miss some
extensions.
JIRA: BGPCEP-923
Change-Id: I5111e4710d196bc26cce03eac8ebc5238de68c22
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Reference;
+import org.osgi.service.component.annotations.ReferencePolicyOption;
@Component(immediate = true, service = RSVPExtensionConsumerContext.class)
// FIXME: merge with DefaultRSVPExtensionConsumerContext once we have OSGi R7
public final class OSGiRSVPExtensionConsumerContext extends ForwardingRSVPExtensionConsumerContext {
- @Reference
+ @Reference(policyOption = ReferencePolicyOption.GREEDY)
List<RSVPExtensionProviderActivator> extensionActivators;
private SimpleRSVPExtensionProviderContext delegate;