/*
 * Copyright (c) 2012 Mateusz Parzonka, Eric Bodden
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Mateusz Parzonka - initial API and implementation
 */
package prm4j.indexing.realtime;

import prm4j.indexing.staticdata.MetaNode;
import prm4j.indexing.staticdata.NodeFactory;

public class LeafNodeWithMonitorSetsFactory extends NodeFactory {

    private final NodeManager nodeManager;

    public LeafNodeWithMonitorSetsFactory(NodeManager nodeManager) {
	this.nodeManager = nodeManager;
    }

    @Override
    public Node createNode(MetaNode metaNode, int parameterIndex, LowLevelBinding binding) {
	return new LeafNodeWithMonitorSets(metaNode, parameterIndex, binding, nodeManager.getReferenceQueue());
    }

}

@@ -827,14 +827,19 @@
  %7B%0A%09
-return
+Node node =
  new
@@ -932,16 +932,62 @@
 eue());%0A
+%09nodeManager.createdNode(node);%0A%09return node;%0A
     %7D%0A%0A%7D

Fix diagnostics in LeafNodeWithMonitorSetsFactory