Fix yanglib SFT failure
[netconf.git] / netconf / yanglib / src / main / java / org / opendaylight / yanglib / impl / YangLibRestApp.java
index cafcd116234467bc5b9875dfb143dbe58841d76d..308e9bb7a3cab77da49d663737d8a42678c0a39f 100644 (file)
@@ -12,17 +12,9 @@ import java.util.Collections;
 import java.util.Set;
 import javax.ws.rs.core.Application;
 import org.opendaylight.yanglib.api.YangLibRestAppService;
-import org.osgi.framework.FrameworkUtil;
 
 public class YangLibRestApp extends Application implements YangLibRestAppService {
-
-    private final YangLibServiceImpl yangLibService;
-
-    public YangLibRestApp() {
-        this.yangLibService = new YangLibServiceImpl();
-        FrameworkUtil.getBundle(getClass()).getBundleContext().registerService(YangLibRestAppService.class.getName(),
-                this, null);
-    }
+    private final YangLibServiceImpl yangLibService = new YangLibServiceImpl();
 
     @Override
     public Set<Object> getSingletons() {