Move adsal into its own subdirectory.
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / utils / INodeFactory.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.sal.utils;
11
12 import org.opendaylight.controller.sal.core.Node;
13
14 /**
15  * This interface defines the methods to be called when looking up custom node types
16  *
17  */
18
19 public interface INodeFactory {
20     /**
21      * Method to get custom node types from protocol plugins
22      *
23      * @param nodeType
24      *            {@Link org.opendaylight.controller.sal.core.Node} type
25      *            string
26      * @param nodeId
27      *            {@Link org.opendaylight.controller.sal.core.Node} ID
28      *            string
29      * @return the custom {@Link
30      *         org.opendaylight.controller.sal.core.Node}
31      */
32     public Node fromString(String nodeType, String nodeId);
33 }