* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.monitoring.osgi;
-import com.google.common.collect.Sets;
+import com.google.common.collect.ImmutableSet;
import java.util.Set;
import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
import org.opendaylight.netconf.mapping.api.NetconfOperation;
public class NetconfMonitoringOperationService implements NetconfOperationService {
- private final NetconfMonitoringService monitor;
+ private final ImmutableSet<NetconfOperation> netconfOperations;
public NetconfMonitoringOperationService(final NetconfMonitoringService monitor) {
- this.monitor = monitor;
+ netconfOperations = ImmutableSet.of(new Get(monitor), new GetSchema(monitor));
}
@Override
public Set<NetconfOperation> getNetconfOperations() {
- return Sets.newHashSet(new Get(monitor), new GetSchema(monitor));
+ return netconfOperations;
}
@Override