1 package org.opendaylight.controller.protocol_plugins.stub.internal;
3 import org.opendaylight.controller.sal.core.NodeConnector;
4 import org.opendaylight.controller.sal.utils.INodeConnectorFactory;
5 import org.opendaylight.controller.sal.core.Node;
7 public class StubNodeConnectorFactory implements INodeConnectorFactory
13 * Function called by the dependency manager when at least one dependency
14 * become unsatisfied or when the component is shutting down because for
15 * example bundle is being stopped.
22 * Function called by dependency manager after "init ()" is called and after
23 * the services provided by the class are registered in the service registry
30 * Function called by the dependency manager before the services exported by
31 * the component are unregistered, this will be followed by a "destroy ()"
38 public NodeConnector fromStringNoNode(String typeStr, String IDStr,
40 if(typeStr.equals("STUB")){
42 return new NodeConnector(typeStr, Integer.parseInt(IDStr), n);
43 } catch (Exception ex) {