fabric-engine/PublicDev — pull request #31 by jcgagnon (2012-03-21 17:27:56+00:00)
Title: Remove nodes

@pzion Core service for removing DG Containers (nodes, resourceLoadNodes, events, eventHandlers). Some Core changes were required to do the cleanup (often it was done in the destructor). Since we can't force the destruction of a Container (ref counted), we need to remove the potential references to it (eg: node dependencies).

In particular, I was careful that the dependencies to the destroyed node were properly cleaned up and that it was reflected from the Wrapper layer (tested in unit tests).

Right now I'm not doing cleanup over bindings which might be invalidated due to a dependency removal. It is possible that a new dependency will be added later to fix it, so for now I don't do any magic and will let the "user" handle that the way he wants.