Module Specification Advertisement
A module specification advertisement describes the specification of a module. That is, it describes an expected on-wire behavior and protocol. The purpose of this advertisement is to provide a description of what a particular module specification ID stands for. (See Example 14-5.)
A module specification ID is what other modules or other code running on JXTA uses for designating a particular network-compatible family of implementations of a given class.
It is important to know how a group implementation may designate the components that provide the various services that this group supports. All the built-in core peergroup services (discovery, membership, resolver, etc.) are modules.
It is not required to publish a module specification advertisement for a module specification ID to be valid, although it is a good practice.
A module specification advertisement may also describe how to invoke and use a module. A module may be used through its API by locating an implementation, loading it, and starting it, or a module may be usable through a pipe or a proxy module. Modules that permit this include a pipe advertisement and/or the module specification ID of a proxy module in their module specification IDs. Publication of the module specification advertisement is of course required in this case.
A module specification advertisement is not required to provide a completely formal description of the module’s network behavior or protocol; it is intended ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access