public PathTracker getChildTracker(String name) { return new PathTracker(this, name); }
public String getPath() { if (path == null) { // implies parent != null path = PathUtils.concat(parent.getPath(), name); } return path; }
private QueueingHandler( QueueingHandler parent, String name, NodeState before, NodeState after) { this.parent = parent; this.queue = parent.queue; this.factory = parent.factory; this.root = parent.root; this.name = name; this.aggregator = parent.aggregator; this.pathTracker = parent.pathTracker.getChildTracker(name); this.beforeIdentifierTracker = parent.beforeIdentifierTracker.getChildTracker(name, before); this.parents = new LinkedList<ChildNodeEntry>(parent.parents); if (after.exists()) { this.identifierTracker = parent.identifierTracker.getChildTracker(name, after); this.parentType = getPrimaryType(after); this.parentMixins = getMixinTypes(after); this.parents.add(new MemoryChildNodeEntry(name, after)); } else { this.identifierTracker = beforeIdentifierTracker; this.parentType = getPrimaryType(before); this.parentMixins = getMixinTypes(before); this.parents.add(new MemoryChildNodeEntry(name, before)); } }
private QueueingHandler( QueueingHandler parent, String name, NodeState before, NodeState after) { this.parent = parent; this.queue = parent.queue; this.factory = parent.factory; this.root = parent.root; this.name = name; this.aggregator = parent.aggregator; this.pathTracker = parent.pathTracker.getChildTracker(name); this.beforeIdentifierTracker = parent.beforeIdentifierTracker.getChildTracker(name, before); this.parents = new LinkedList<ChildNodeEntry>(parent.parents); if (after.exists()) { this.identifierTracker = parent.identifierTracker.getChildTracker(name, after); this.parentType = getPrimaryType(after); this.parentMixins = getMixinTypes(after); this.parents.add(new MemoryChildNodeEntry(name, after)); } else { this.identifierTracker = beforeIdentifierTracker; this.parentType = getPrimaryType(before); this.parentMixins = getMixinTypes(before); this.parents.add(new MemoryChildNodeEntry(name, before)); } }
public String getPath() { if (path == null) { // implies parent != null path = PathUtils.concat(parent.getPath(), name); } return path; }
public PathTracker getChildTracker(String name) { return new PathTracker(this, name); }
private QueueingHandler( QueueingHandler parent, String name, NodeState before, NodeState after) { this.parent = parent; this.queue = parent.queue; this.factory = parent.factory; this.root = parent.root; this.name = name; this.aggregator = parent.aggregator; this.pathTracker = parent.pathTracker.getChildTracker(name); this.beforeIdentifierTracker = parent.beforeIdentifierTracker.getChildTracker(name, before); this.parents = new LinkedList<ChildNodeEntry>(parent.parents); if (after.exists()) { this.identifierTracker = parent.identifierTracker.getChildTracker(name, after); this.parentType = getPrimaryType(after); this.parentMixins = getMixinTypes(after); this.parents.add(new MemoryChildNodeEntry(name, after)); } else { this.identifierTracker = beforeIdentifierTracker; this.parentType = getPrimaryType(before); this.parentMixins = getMixinTypes(before); this.parents.add(new MemoryChildNodeEntry(name, before)); } }
@Override public void propertyChanged(PropertyState before, PropertyState after) { AggregationResult aggregated = aggregate(after); queue.addEvent(factory.propertyChanged( before, after, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
QueueingHandler( EventQueue queue, EventFactory factory, EventAggregator aggregator, NodeState before, NodeState after) { this.parent = null; this.queue = queue; this.factory = factory; this.name = null; this.aggregator = aggregator; this.pathTracker = new PathTracker(); this.beforeIdentifierTracker = new IdentifierTracker(before); this.parents = new LinkedList<ChildNodeEntry>(); if (after.exists()) { this.identifierTracker = new IdentifierTracker(after); this.parentType = getPrimaryType(after); this.parentMixins = getMixinTypes(after); this.root = after; } else { this.identifierTracker = beforeIdentifierTracker; this.parentType = getPrimaryType(before); this.parentMixins = getMixinTypes(before); this.root = before; } }
@Override public void propertyDeleted(PropertyState before) { AggregationResult aggregated = aggregate(before); queue.addEvent(factory.propertyDeleted( before, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
QueueingHandler( EventQueue queue, EventFactory factory, EventAggregator aggregator, NodeState before, NodeState after) { this.parent = null; this.queue = queue; this.factory = factory; this.name = null; this.aggregator = aggregator; this.pathTracker = new PathTracker(); this.beforeIdentifierTracker = new IdentifierTracker(before); this.parents = new LinkedList<ChildNodeEntry>(); if (after.exists()) { this.identifierTracker = new IdentifierTracker(after); this.parentType = getPrimaryType(after); this.parentMixins = getMixinTypes(after); this.root = after; } else { this.identifierTracker = beforeIdentifierTracker; this.parentType = getPrimaryType(before); this.parentMixins = getMixinTypes(before); this.root = before; } }
@Override public void propertyAdded(PropertyState after) { AggregationResult aggregated = aggregate(after); queue.addEvent(factory.propertyAdded( after, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
QueueingHandler( EventQueue queue, EventFactory factory, EventAggregator aggregator, NodeState before, NodeState after) { this.parent = null; this.queue = queue; this.factory = factory; this.name = null; this.aggregator = aggregator; this.pathTracker = new PathTracker(); this.beforeIdentifierTracker = new IdentifierTracker(before); this.parents = new LinkedList<ChildNodeEntry>(); if (after.exists()) { this.identifierTracker = new IdentifierTracker(after); this.parentType = getPrimaryType(after); this.parentMixins = getMixinTypes(after); this.root = after; } else { this.identifierTracker = beforeIdentifierTracker; this.parentType = getPrimaryType(before); this.parentMixins = getMixinTypes(before); this.root = before; } }
@Override public void propertyChanged(PropertyState before, PropertyState after) { AggregationResult aggregated = aggregate(after); queue.addEvent(factory.propertyChanged( before, after, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
@Override public void propertyDeleted(PropertyState before) { AggregationResult aggregated = aggregate(before); queue.addEvent(factory.propertyDeleted( before, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
@Override public void propertyAdded(PropertyState after) { AggregationResult aggregated = aggregate(after); queue.addEvent(factory.propertyAdded( after, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
@Override public void propertyAdded(PropertyState after) { AggregationResult aggregated = aggregate(after); queue.addEvent(factory.propertyAdded( after, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
@Override public void propertyChanged(PropertyState before, PropertyState after) { AggregationResult aggregated = aggregate(after); queue.addEvent(factory.propertyChanged( before, after, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
@Override public void propertyDeleted(PropertyState before) { AggregationResult aggregated = aggregate(before); queue.addEvent(factory.propertyDeleted( before, aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier())); }
@Override public void nodeReordered( final String destName, final String name, NodeState reordered) { IdentifierTracker tracker = identifierTracker.getChildTracker(name, reordered); AggregationResult aggregated = aggregate(name, reordered, tracker); queue.addEvent(factory.nodeReordered( aggregated.primaryType, aggregated.mixinTypes, aggregated.pathTracker.getPath(), aggregated.name, aggregated.identifierTracker.getIdentifier(), destName)); }