Remove binding spec2
[mdsal.git] / binding2 / mdsal-binding2-api / src / main / java / org / opendaylight / mdsal / binding / javav2 / api / RpcActionProviderService.java
diff --git a/binding2/mdsal-binding2-api/src/main/java/org/opendaylight/mdsal/binding/javav2/api/RpcActionProviderService.java b/binding2/mdsal-binding2-api/src/main/java/org/opendaylight/mdsal/binding/javav2/api/RpcActionProviderService.java
deleted file mode 100644 (file)
index 577b21c..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.binding.javav2.api;
-
-import com.google.common.annotations.Beta;
-import com.google.common.collect.ImmutableSet;
-import java.util.Set;
-import org.opendaylight.mdsal.binding.javav2.spec.base.Action;
-import org.opendaylight.mdsal.binding.javav2.spec.base.InstanceIdentifier;
-import org.opendaylight.mdsal.binding.javav2.spec.base.Rpc;
-import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
-import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
-import org.opendaylight.yangtools.concepts.ObjectRegistration;
-
-/**
- * Provides ability to register Remote Procedure Call (RPC) and Action service implementations.
- * The RPCs and Actions are defined in YANG models.
- */
-@Beta
-public interface RpcActionProviderService {
-
-    /**
-     * Returns class representing registration of global RPC.
-     * @param type RPC binding generated interface
-     * @param implementation RPC binding implementation
-     * @param <S> service class type
-     * @param <T> service implementation type
-     * @return returns class representing a RPC registration
-     */
-    <S extends Rpc<?, ?>, T extends S> ObjectRegistration<T> registerRpcImplementation(Class<S> type,
-        T implementation);
-
-    /**
-     * Returns class representing registration of global RPC for supported paths.
-     * @param type RPC binding generated interface
-     * @param implementation RPC binding implementation
-     * @param paths set of supported paths
-     * @param <S> service class type
-     * @param <T> service implementation type
-     * @return returns class representing a RPC registration
-     */
-    <S extends Rpc<?, ?>, T extends S> ObjectRegistration<T> registerRpcImplementation(Class<S> type,
-        T implementation, Set<InstanceIdentifier<?>> paths);
-
-    /**
-     * Returns class representing registration of Action/ListAction.
-     * @param type Action/ListAction binding generated interface
-     * @param implementation Action/ListAction binding implementation
-     * @param datastore {@link LogicalDatastoreType} on which the implementation operates
-     * @param validNodes Set of nodes this implementation is constrained to, empty if this implementation can handle
-     *                   any target node.
-     * @param <S> service class type
-     * @param <P> parent type
-     * @param <T> service implementation type
-     * @return returns class representing a Action registration
-     */
-    <S extends Action<? extends TreeNode, ?, ?, ?>, T extends S, P extends TreeNode> ObjectRegistration<T>
-            registerActionImplementation(
-        Class<S> type, T implementation, LogicalDatastoreType datastore, Set<DataTreeIdentifier<P>> validNodes);
-
-    default <S extends Action<? extends TreeNode, ?, ?, ?>, T extends S> ObjectRegistration<T>
-            registerActionImplementation(Class<S> type, T implementation, LogicalDatastoreType datastore) {
-        return registerActionImplementation(type, implementation, datastore, ImmutableSet.of());
-    }
-
-    default <S extends Action<? extends TreeNode, ?, ?, ?>, T extends S> ObjectRegistration<T>
-            registerActionImplementation(Class<S> type, T implementation) {
-        return registerActionImplementation(type, implementation, LogicalDatastoreType.OPERATIONAL, ImmutableSet.of());
-    }
-}