2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.md.sal.dom.spi;
10 import org.opendaylight.mdsal.dom.api.DOMRpcIdentifier;
11 import org.opendaylight.mdsal.dom.api.DOMRpcImplementation;
12 import org.opendaylight.mdsal.dom.api.DOMRpcImplementationRegistration;
13 import org.opendaylight.mdsal.dom.api.DOMRpcProviderService;
15 import com.google.common.collect.ImmutableSet;
18 * Convenience abstract base class for {@link DOMRpcProviderService} implementations.
20 public abstract class AbstractDOMRpcProviderService implements DOMRpcProviderService {
22 public final <T extends DOMRpcImplementation> DOMRpcImplementationRegistration<T> registerRpcImplementation(final T implementation, final DOMRpcIdentifier... types) {
23 return registerRpcImplementation(implementation, ImmutableSet.copyOf(types));