2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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 package org.opendaylight.controller.protocol_plugins.stub.internal;
10 import org.opendaylight.controller.sal.core.NodeConnector;
11 import org.opendaylight.controller.sal.utils.INodeConnectorFactory;
12 import org.opendaylight.controller.sal.core.Node;
14 public class StubNodeConnectorFactory implements INodeConnectorFactory
20 * Function called by the dependency manager when at least one dependency
21 * become unsatisfied or when the component is shutting down because for
22 * example bundle is being stopped.
29 * Function called by dependency manager after "init ()" is called and after
30 * the services provided by the class are registered in the service registry
37 * Function called by the dependency manager before the services exported by
38 * the component are unregistered, this will be followed by a "destroy ()"
45 public NodeConnector fromStringNoNode(String typeStr, String IDStr,
47 if(typeStr.equals("STUB")){
49 return new NodeConnector(typeStr, Integer.parseInt(IDStr), n);
50 } catch (Exception ex) {