Remove dependency on controller config-util
[netconf.git] / netconf / mdsal-netconf-monitoring / src / main / java / org / opendaylight / controller / config / yang / netconf / mdsal / monitoring / MdsalMonitoringMapperFactory.java
index 8ed7a7b173be0e580dc047bc6cf9a8c4e62e9a9f..cb98d40892207887c2801d54d2fa6fca91e510e8 100644 (file)
@@ -7,8 +7,10 @@
  */
 package org.opendaylight.controller.config.yang.netconf.mdsal.monitoring;
 
-import org.opendaylight.controller.config.util.capability.Capability;
+import java.util.Collections;
+import java.util.Set;
 import org.opendaylight.controller.sal.common.util.NoopAutoCloseable;
+import org.opendaylight.netconf.api.capability.Capability;
 import org.opendaylight.netconf.api.monitoring.CapabilityListener;
 import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
 import org.opendaylight.netconf.mapping.api.NetconfOperation;
@@ -17,9 +19,6 @@ import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactoryListener;
 import org.opendaylight.netconf.monitoring.GetSchema;
 
-import java.util.Collections;
-import java.util.Set;
-
 public class MdsalMonitoringMapperFactory implements NetconfOperationServiceFactory, AutoCloseable {
 
     private final NetconfOperationService operationService;
@@ -28,9 +27,10 @@ public class MdsalMonitoringMapperFactory implements NetconfOperationServiceFact
 
     private static final Set<Capability> CAPABILITIES = Collections.emptySet();
 
-    public MdsalMonitoringMapperFactory(final NetconfOperationServiceFactoryListener netconfOperationServiceFactoryListener,
-                                        final NetconfMonitoringService netconfMonitoringService,
-                                        final MonitoringToMdsalWriter monitoringToMdsalWriter) {
+    public MdsalMonitoringMapperFactory(
+            final NetconfOperationServiceFactoryListener netconfOperationServiceFactoryListener,
+            final NetconfMonitoringService netconfMonitoringService,
+            final MonitoringToMdsalWriter monitoringToMdsalWriter) {
 
         this.netconfOperationServiceFactoryListener = netconfOperationServiceFactoryListener;
         this.monitoringToMdsalWriter = monitoringToMdsalWriter;
@@ -57,9 +57,9 @@ public class MdsalMonitoringMapperFactory implements NetconfOperationServiceFact
 
     @Override
     public Set<Capability> getCapabilities() {
-        // TODO
-        // No capabilities exposed to prevent clashes with schemas from mdsal-netconf-connector (it exposes all the schemas)
-        // If the schemas exposed by mdsal-netconf-connector are filtered, this class would expose monitoring related models
+        // TODO No capabilities exposed to prevent clashes with schemas from mdsal-netconf-connector (it exposes
+        // all the schemas). If the schemas exposed by mdsal-netconf-connector are filtered, this class would expose
+        // monitoring related models.
         return CAPABILITIES;
     }
 
@@ -69,7 +69,7 @@ public class MdsalMonitoringMapperFactory implements NetconfOperationServiceFact
     }
 
     /**
-     * Invoke using blueprint
+     * Invoked using blueprint.
      */
     @Override
     public void close() {
@@ -77,4 +77,4 @@ public class MdsalMonitoringMapperFactory implements NetconfOperationServiceFact
         netconfOperationServiceFactoryListener.onRemoveNetconfOperationServiceFactory(this);
     }
 
-}
\ No newline at end of file
+}