1 package org.opendaylight.controller.protocol_plugins.stub.internal;
3 import org.opendaylight.controller.sal.core.ConstructionException;
4 import org.opendaylight.controller.sal.utils.INodeFactory;
5 import org.opendaylight.controller.sal.core.Node;
7 public class StubNodeFactory implements INodeFactory
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 Node fromString(String nodeType, String nodeId){
39 if(nodeType.equals("STUB"))
41 return new Node("STUB", Integer.parseInt(nodeId));
42 } catch(ConstructionException e)