• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Sybex CSG 11 - Ch. 17: Modular Apps. - P. 837 - Question 15 - possible wrong explanation in answer

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Possible wrong explanation found in Ch. 17: Modular Applications. - P. 837 - Question 15.

The question:

Suppose you have separate modules for a service provider interface, service provider, service locator, and consumer. Which module(s) need to specify a requires directive on the service provider?



The explanation of the answer:

This question is tricky. The service provider must have a uses directive, but that is on the service provider interface. No modules need to specify requires on the service provider since that is the implementation.



According to table. 17.8 on page 831. The only artifact that needs uses is the Service locator.

Therefor, this explanation seems wrong to me: the service provider" should be service locator.
Please correct me if I am wrong.  

 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic