NodeConnector custom type
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / utils / INodeConnectorFactory.java
diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/utils/INodeConnectorFactory.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/utils/INodeConnectorFactory.java
new file mode 100644 (file)
index 0000000..317976d
--- /dev/null
@@ -0,0 +1,29 @@
+
+/*
+ * Copyright (c) 2013 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.controller.sal.utils;
+
+import org.opendaylight.controller.sal.core.Node;
+import org.opendaylight.controller.sal.core.NodeConnector;
+
+/**
+ * @file   INodeFactory.java
+ *
+ * @brief  Define the interface to be called when looking up custom node types
+ *
+ */
+
+public interface INodeConnectorFactory {
+    /**
+     * Method to get custom NodeConnector types from protocol plugins
+     *
+     */
+    public NodeConnector fromStringNoNode(String typeStr, String IDStr,
+            Node n);
+}