public interface ModelObserverPlugin extends Plugin
AbstractNode.addObserver(org.bladerunnerjs.api.plugin.EventObserver)
method, and act appropriately to the events
received.
The ModelObserverPlugin
class doesn't add any methods over what is already provided by Plugin
, and unlike all other
plug-in types, is wrapped within a VirtualProxyPlugin
class that immediately invokes Plugin.setBRJS()
on the underlying plug-in,
rather than doing it lazily, guaranteeing that all generated events will be witnessed.
Model observer plug-ins have their Plugin.setBRJS(org.bladerunnerjs.api.BRJS)
method invoked before any of the other plug-in types have been made available on
the model, so as to prevent model observers from inadvertently causing other plug-in types to start initializing, which would lead to events
being missed by other model observer plug-ins that have yet to be initialized.
castTo, close, getPluginClass, instanceOf, setBRJS