Convert yanglib to new web API
[netconf.git] / netconf / yanglib / src / main / java / org / opendaylight / yanglib / impl / YangLibServiceImpl.java
index 949d8f577393c35baaf747ae4a1b51266d3aa0fb..d856ac7bdb5f62b083602d4a449d8cbbea4a46f6 100644 (file)
@@ -29,15 +29,10 @@ import org.slf4j.LoggerFactory;
 public class YangLibServiceImpl implements YangLibService {
     private static final Logger LOG = LoggerFactory.getLogger(YangLibServiceImpl.class);
 
-    private static volatile SchemaRepository schemaRepository;
+    private final SchemaRepository schemaRepository;
 
-    public YangLibServiceImpl() {
-
-    }
-
-    public static void setSchemaRepository(final SchemaRepository schemaRepository) {
-        LOG.debug("Setting schema repository {}", schemaRepository);
-        YangLibServiceImpl.schemaRepository = schemaRepository;
+    public YangLibServiceImpl(final SchemaRepository schemaRepository) {
+        this.schemaRepository = schemaRepository;
     }
 
     @Override