Page Edited :
FELIX :
Dependency Manager Background
Dependency Manager Background has been edited by Marcel Offermans (Jul 09, 2007). Content:BackgroundThere are a couple of concepts, explained here, that help understand the dependency manager better. This page lists them. White board patternThe white board pattern presents a more efficient way to implement listeners. Instead of having listeners track sources and registering themselves with those sources, the white board pattern has the listeners register themselves as services in the OSGi service registry. When a source needs to notify listeners, it simply looks up all listener services in the registry and notifies them. The pattern is explained in great detail in Null object patternA null object pattern The motivation for using it is that sometimes a class that requires a collaborator does not need the collaborator to do anything. However, the class wishes to treat a collaborator that does nothing the same way it treats one that actually provides behavior. |
Unsubscribe or edit your notifications preferences