org.opendaylight.mdsal.dom.spi.ForwardingDOMRpcProviderService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mdsal-dom-spi Show documentation
Show all versions of mdsal-dom-spi Show documentation
MD-SAL DOM service provider interfaces
The newest version!
/*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* 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.mdsal.dom.spi;
import com.google.common.collect.ForwardingObject;
import java.util.Map;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.mdsal.dom.api.DOMRpcIdentifier;
import org.opendaylight.mdsal.dom.api.DOMRpcImplementation;
import org.opendaylight.mdsal.dom.api.DOMRpcProviderService;
import org.opendaylight.yangtools.concepts.Registration;
/**
* Utility class which implements {@link DOMRpcProviderService} by forwarding
* requests to a backing instance.
*/
public abstract class ForwardingDOMRpcProviderService extends ForwardingObject implements DOMRpcProviderService {
@Override
protected abstract @NonNull DOMRpcProviderService delegate();
@Override
public Registration registerRpcImplementation(final DOMRpcImplementation implementation,
final DOMRpcIdentifier... types) {
return delegate().registerRpcImplementation(implementation, types);
}
@Override
public Registration registerRpcImplementation(final DOMRpcImplementation implementation,
final Set types) {
return delegate().registerRpcImplementation(implementation, types);
}
@Override
public Registration registerRpcImplementations(final Map map) {
return delegate().registerRpcImplementations(map);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy