• Post Reply Bookmark Topic Watch Topic
  • New Topic

Service Provider Interface and its usage

 
Avinash Tiwari
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a service provider interface in actual. Does it applies when you want to create a vendor product and expose the service or it can be utilized in the application developer way too.

What condition precedes usage of this.

Does it have any resemblance with Façade pattern?

Please advice.

Thanks,
Avinash
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36027
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this blog post describing the pattern. A facade is meant for reducing the number of calls. Service provider (and locator) are for finding an object.

Note: I've seen ServiceLocator as a pattern and that's the one Oracle/the JEE cert references.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!