Bug 1411: Design Binding specification v2
[mdsal.git] / binding2 / prototype / yang-binding2 / src / main / java / org / opendaylight / yangtools / yang / binding / YangModelBindingProvider.java
diff --git a/binding2/prototype/yang-binding2/src/main/java/org/opendaylight/yangtools/yang/binding/YangModelBindingProvider.java b/binding2/prototype/yang-binding2/src/main/java/org/opendaylight/yangtools/yang/binding/YangModelBindingProvider.java
new file mode 100644 (file)
index 0000000..9a5fd63
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2016 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.yangtools.yang.binding;
+
+import java.util.ServiceLoader;
+
+/**
+ *
+ * Provider of YangModuleInfo for specified package / model.
+ *
+ * Implementation of this interface should be discoverable
+ * via {@link ServiceLoader}
+ *
+ *
+ *
+ */
+public interface YangModelBindingProvider {
+
+    /**
+     * YangModuleInfo associated to package
+     *
+     * @return
+     */
+    YangModuleInfo getModuleInfo();
+
+}