introduce Rfc8040RestConfWiring for standalone (simple) environments
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / handlers / RpcServiceHandler.java
index beff503a67e8622a6ff66b5c51d36295da981976..44141f49fea9fab1486643df6d58f44aa289e184 100644 (file)
@@ -7,15 +7,20 @@
  */
 package org.opendaylight.restconf.nb.rfc8040.handlers;
 
+import javax.inject.Inject;
+import javax.inject.Singleton;
+import org.apache.aries.blueprint.annotation.service.Reference;
 import org.opendaylight.mdsal.dom.api.DOMRpcService;
 
 /**
  * Implementation of {@link RpcServiceHandler}.
  */
+@Singleton
 public class RpcServiceHandler implements Handler<DOMRpcService> {
     private final DOMRpcService rpcService;
 
-    public RpcServiceHandler(final DOMRpcService rpcService) {
+    @Inject
+    public RpcServiceHandler(final @Reference DOMRpcService rpcService) {
         this.rpcService = rpcService;
     }