We do not want strong binding here, as it just obscures our
dependencies. At the end of the day we want to make things a lot more
modular, but that will require a significant re-thinking of how the
server is wired.
JIRA: NETCONF-945
Change-Id: Iacd243dffe5a8d8884a1777ddc744168e470ab00
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import org.osgi.service.component.annotations.Deactivate;
@Component(service = { NetconfOperationServiceFactory.class, NetconfOperationServiceFactoryListener.class },
- property = NetconfMapperAggregator.OSGI_TYPE, immediate = true)
+ property = "type=mapper-aggregator-registry", immediate = true)
public final class NetconfMapperAggregator extends AggregatedNetconfOperationServiceFactory {
- static final String OSGI_TYPE = "type=mapper-aggregator-registry";
-
@Activate
public NetconfMapperAggregator() {
super();
final ComponentFactory<DefaultNetconfMonitoringService> monitoringFactory,
@Reference(target = "(component.factory=" + DefaultNetconfServerDispatcher.FACTORY_NAME + ")")
final ComponentFactory<DefaultNetconfServerDispatcher> dispatcherFactory,
- @Reference(target = "(" + NetconfMapperAggregator.OSGI_TYPE + ")")
+ @Reference(target = "(type=mapper-aggregator-registry)")
final NetconfOperationServiceFactory mapperAggregatorRegistry,
@Reference(target = "(type=global-netconf-ssh-scheduled-executor)")
final ScheduledThreadPool sshScheduledExecutor,