b703e33244650ba1af15078e7710222c499a9797
[mdsal.git] / binding2 / mdsal-binding2-generator-api / src / main / java / org / opendaylight / mdsal / binding2 / generator / api / ModuleInfoRegistry.java
1 /*
2  * Copyright (c) 2016 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.mdsal.binding2.generator.api;
10
11 import com.google.common.annotations.Beta;
12 import org.opendaylight.mdsal.binding2.spec.YangModuleInfo;
13 import org.opendaylight.yangtools.concepts.ObjectRegistration;
14
15 /**
16  * Provides mechanism for YangModuleInfo registration
17  */
18 @Beta
19 public interface ModuleInfoRegistry {
20
21     /**
22      *
23      * @param yangModuleInfo YANG module info instance
24      * @return reference to registered YANG module info
25      */
26     ObjectRegistration<YangModuleInfo> registerModuleInfo(YangModuleInfo yangModuleInfo);
27 }