5 package org.opendaylight.controller.protocol_plugin.packetcable.internal;
7 import org.opendaylight.controller.sal.core.ConstructionException;
8 import org.opendaylight.controller.sal.utils.INodeFactory;
9 import org.opendaylight.controller.sal.core.Node;
11 public class PCNodeFactory implements INodeFactory
17 * Function called by the dependency manager when at least one dependency
18 * become unsatisfied or when the component is shutting down because for
19 * example bundle is being stopped.
26 * Function called by dependency manager after "init ()" is called and after
27 * the services provided by the class are registered in the service registry
34 * Function called by the dependency manager before the services exported by
35 * the component are unregistered, this will be followed by a "destroy ()"
42 public Node fromString(String nodeType, String nodeId){
43 if(nodeType.equals("PC"))
45 return new Node("PC", Integer.parseInt(nodeId));
46 } catch(ConstructionException e)