|
[
Permlink
| « Hide
]
Nalini added a comment - 11/Sep/07 11:11 AM
Proposed Design document for Discovery based bootstrapping for advertisements
Nalini made changes - 11/Sep/07 11:11 AM
Instead of directly modifying SimpleAdvertisement, why not create new classes (e.g., WSDiscoveryDynamicAdvertisement and SLPDynamicAdvertisement) that either extend SimpleAdvertisement or AbstractAdvertisement (which ever is more appropriate) and implement the newly introduced DiscoveryCapability? This would not require changes to the muse descriptor schema and retain the now known and stable implementation of SimpleAdvertisement (which other classes extend).
One suggestion I would make is to use Resource.getCapability( ) or Resource.hasCapability( ) rather than creating another init-param. Have the Advertisement implementation(s) check for the presence of the Discovery capability in the containing Resource and start the discovery process if it's there; the ability to have these kind of conditional features was one of the main goals of having the *Capability( ) methods in the Resource API and making sure all capabilities had interfaces. This way you can have the optional discovery stuff without adding another init-param - discovery just gets turned on if you add the capability, and advertisement is augmented if it's there as well.
Attached is the implementation of this new feature contributed by the IBM Team
Kam K. Yee made changes - 07/Apr/08 02:35 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||