Resolve Bug:681 - Fix config module registration to Service Registry.
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / SearchableServiceReferenceWritableRegistry.java
1 /*
2  * Copyright (c) 2013 Cisco 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
9 package org.opendaylight.controller.config.manager.impl;
10
11 import org.opendaylight.controller.config.api.ModuleIdentifier;
12 import org.opendaylight.controller.config.api.ServiceReferenceWritableRegistry;
13 import org.opendaylight.controller.config.api.annotations.ServiceInterfaceAnnotation;
14
15 import java.util.Map;
16
17 public interface SearchableServiceReferenceWritableRegistry extends ServiceReferenceWritableRegistry {
18     /**
19      * Return mapping between service ref names and service interface annotation for given
20      * module.
21      * @throws java.lang.IllegalArgumentException if any of service qNames is not found
22      * @throws java.lang.NullPointerException if parameter is null
23      */
24     Map<String /* service ref */, ServiceInterfaceAnnotation> findServiceInterfaces(ModuleIdentifier moduleIdentifier);
25
26 }