public class DefaultNodeFactory extends java.lang.Object implements NodeFactory
DefaultNode
s.Constructor and Description |
---|
DefaultNodeFactory(java.util.concurrent.ScheduledExecutorService scheduledExecutorService) |
Modifier and Type | Method and Description |
---|---|
Node |
newNode(NodeConfiguration nodeConfiguration)
Build a new
Node with the given NodeConfiguration . |
Node |
newNode(NodeConfiguration nodeConfiguration,
java.util.Collection<NodeListener> listeners)
|
public DefaultNodeFactory(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
public Node newNode(NodeConfiguration nodeConfiguration, java.util.Collection<NodeListener> listeners)
NodeFactory
newNode
in interface NodeFactory
nodeConfiguration
- the NodeConfiguration
for the new Node
listeners
- a collection of NodeListener
instances which will be
registered with the node (can be null
)Node
public Node newNode(NodeConfiguration nodeConfiguration)
NodeFactory
Node
with the given NodeConfiguration
.newNode
in interface NodeFactory
nodeConfiguration
- the NodeConfiguration
for the new Node
Node