iPOJO in 10 minutes -- Additional Exercises
  1. Based on the English Dictionary service implementation, develop and deploy a French Dictionary service implementation
  2. Modify your code so that only French dictionaries can be used:
  3. Update your code so that the French Dictionary service is the preferred service -- this means that if both the English and the French Dictionary services are available, then the Spell Checker service connects to the French one; also, if the Spell Checker is already connected to the English service and the French service becomes available, then the Spell Checker re-connects to the French service.
    To achieve this you can use the dynamic priority policy option in the @Requires annotation of the Spell Checker, and use the comparator option with your own Comparator class to rank the priorities of dictionary services based on their language property.
    Please see the documentation referenced in the exercise above concerning the use of the @Requires annotation
  4. Transform your previous OSGi project into an iPOJO project