28590c141b9b709308da40ce7d326d16e898cbb1
[controller.git] / opendaylight / blueprint / src / main / java / org / opendaylight / controller / blueprint / ext / RpcServiceMetadata.java
1 /*
2  * Copyright (c) 2016 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.blueprint.ext;
9
10 import java.util.Objects;
11 import java.util.function.Predicate;
12 import org.opendaylight.mdsal.dom.spi.ContentRoutedRpcContext;
13
14 /**
15  * Factory metadata corresponding to the "rpc-service" element that gets an RPC service implementation from
16  * the RpcProviderRegistry and provides it to the Blueprint container.
17  *
18  * @author Thomas Pantelis
19  */
20 final class RpcServiceMetadata extends AbstractInvokableServiceMetadata {
21     RpcServiceMetadata(final String id, final String interfaceName) {
22         super(id, interfaceName);
23     }
24
25     @Override
26     Predicate<ContentRoutedRpcContext> rpcFilter() {
27         return Objects::isNull;
28     }
29 }