2 * Copyright (C) 2013 Red Hat, Inc.
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
8 * Authors : Madhu Venugopal, Brent Salisbury
10 package org.opendaylight.ovsdb.plugin;
12 import org.opendaylight.controller.sal.core.NodeConnector;
13 import org.opendaylight.controller.sal.utils.INodeConnectorFactory;
14 import org.opendaylight.controller.sal.core.Node;
16 public class NodeConnectorFactory implements INodeConnectorFactory
22 * Function called by the dependency manager when at least one dependency
23 * become unsatisfied or when the component is shutting down because for
24 * example bundle is being stopped.
31 * Function called by dependency manager after "init ()" is called and after
32 * the services provided by the class are registered in the service registry
39 * Function called by the dependency manager before the services exported by
40 * the component are unregistered, this will be followed by a "destroy ()"
47 public NodeConnector fromStringNoNode(String typeStr, String IDStr,
49 if(typeStr.equals("OVS")){
51 return new NodeConnector(typeStr, IDStr, n);
52 } catch (Exception ex) {