this.support = new NodeSupport<>(this);
}
-/* public void registerNodeSupport(NodeSupport<Node> support) {
- this.support = support;
- }
-
-
- public void registerSupport(NodeSupport<Node> support) {
- this.support = support;
- }*/
-
@Override
public void refreshVariable(Node node) {
super.refreshVariable(node);
private static final Logger LOGGER = LoggerFactory.getLogger(StandardNodeManager.class);
- private final Node root;
- private final StandardRealm<Node,Engine> realm;
+ protected final Node root;
+ protected final StandardRealm<Node,Engine> realm;
static final Binding NO_BINDING = new VariantBinding() {
};
- THashMap<Node, Variant> valueCache = new THashMap<>();
+ protected THashMap<Node, Variant> valueCache = new THashMap<>();
protected THashMap<Node, THashSet<Runnable>> listeners = new THashMap<>();
AtomicBoolean fireNodeListenersScheduled = new AtomicBoolean(false);
private Engine engine;
protected StandardNodeManager<Node, Engine> nodeManager;
+ private boolean disposed = false;
private Runnable scheduleSyncExec = new Runnable() {
@Override
// Clear nodeManager
nodeManager.clear();
nodeManager = null;
+
+ disposed = true;
+
+ }
+
+ public boolean isDisposed() {
+ return disposed;
}
public StandardNodeManager<Node, Engine> getNodeManager() {