Name
ModuleImplAdvertisement
Synopsis
This advertisement announces the availablity of an implementation of a particular module specification. Module implementation advertisements are used for modules that are loaded dynamically. The peergroup module is in this category, as are modules that make up peergroup services.
When you create a peergroup, you must
publish a ModuleImplAdvertisement corresponding to
the peergroup. The easiest way to do this is to use the
getAllPurposePeerGroupImplAdvertisement( ) method
of the peergroup class. If the peergroup has additional services,
then you must create a ModuleImplAdvertisement
(using the AdvertisementFactory class) and
populate its fields:
-
ModuleSpecID The module specification ID that identifies the specification that this implementation implements
-
Compat The compatability statement of the implementation; this is typcially an element with a name of “Efmt” and a value corresponding to a Java version (e.g.,
JDK1.4)-
Code The name of the Java class that implements the module
-
URI A location where the implementation code can be obtained
-
Provider The provider of the implementation
-
Description A description of the implementation
-
Param Parameters used to initialize the implementation
public abstract class ModuleImplAdvertisement extends net.jxta.document.Advertisement implements Cloneable { // Public Constructors public ModuleImplAdvertisement(); // Public Class Methods public static String getAdvertisementType(); // Property Accessor Methods ...
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