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