hdolder.com srl  

Software R&D
 

   hdc Home    |    Content    |    Blog    |    Director    |    Contact    |    mail us   

 

M&P - The BUS

Posted on August 15, 2013 by Herman Dolder

The BUS is a global Dictionary provided by the M&P Runtime to store object references under string keys.

Dictionary<string, object>

The BUS is specially useful in the Plug-and-Play architecture of M&P to facilitate the interoperation of dynamically loaded Plugins with the rest of the system.

BXaml identifier scopes

IIn BXaml the "identifierscope" of an object is the BOARD in which a BLOCK is created.

To assure modularity only BXaml objects created in the same BOARD can mutually refer among them using their identifiers.

But a reference of an BXaml objects can be also stored in the BUS by simply prefixing its identifier with an asterisk (*) for example

id='myblk' --> id='*myblk'The use of the BUS must be carefully planned to avoid the collision of keys.

Common uses for the BUS

Usually it is convenient to store in the BUS references to BLOCKS created in the TopBoard of the application.

Also can be convenient to store in the BUS references to some BStyle BLOCKS.

The BUS is used internally by BStyle BLOCKS that provide implicit styling.

Comments

Normally the BUS is used in a "Write Once Read Many" (WORM) mode to avoid concurrency conflicts.

The role of the BUS is central in the Plug-and-Play architecture of M&P

 

 

TBW The BLOCKS World 2015  hdolder.com srl
C30815A
2015-06-26